diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2016-03-23 10:43:03 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-04-28 11:58:13 +0200 |
commit | 3a150683ce2f1245fc6f5a02f4a1c2197353962c (patch) | |
tree | e0b085887b32d61df5a1ebec86670fefe58648ab /src/compiler/nir/nir_lower_tex.c | |
parent | 76b8c5cc602eda19c91b842b02f84564c18e79a6 (diff) |
nir/builder: Add bit_size info to nir_build_imm()
v2:
- Group num_components and bit_size together (Jason)
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_tex.c')
-rw-r--r-- | src/compiler/nir/nir_lower_tex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c index 16fee9a2ab1..ac2f92c32f2 100644 --- a/src/compiler/nir/nir_lower_tex.c +++ b/src/compiler/nir/nir_lower_tex.c @@ -232,7 +232,7 @@ get_zero_or_one(nir_builder *b, nir_alu_type type, uint8_t swizzle_val) v.u32[0] = v.u32[1] = v.u32[2] = v.u32[3] = 1; } - return nir_build_imm(b, 4, v); + return nir_build_imm(b, 4, 32, v); } static void |