mesa/st: use nir_imm_vec4
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23461>
This commit is contained in:
committed by
Marge Bot
parent
84856cabfc
commit
2dd5f2cfb4
@@ -64,7 +64,7 @@ nir_channel_vec4(nir_builder *b, nir_ssa_def *src, unsigned channel)
|
||||
static nir_ssa_def *
|
||||
nir_imm_vec4_float(nir_builder *b, float f)
|
||||
{
|
||||
return nir_channel_vec4(b, nir_imm_float(b, f), 0);
|
||||
return nir_imm_vec4(b, f, f, f, f);
|
||||
}
|
||||
|
||||
static nir_ssa_def *
|
||||
|
||||
Reference in New Issue
Block a user