mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 16:40:31 +01:00
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:
parent
84856cabfc
commit
2dd5f2cfb4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue