summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-01-21 13:32:37 -0500
committerRob Clark <[email protected]>2016-02-09 17:30:33 -0500
commitb1770235ed74814a4f5d03fe3e93e59c38a3686b (patch)
tree0c82814a1c5e48672093164efaa0bca2c875744c /src/gallium
parentb6cf98bc82a7842f8391a8e33e5318f6976d21b3 (diff)
ttn: small logic cleanup
The only case where dim!=NULL is where op==load_ubo. But using op==load_ubo is less confusing. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 3e7d69f73ed..89c16650b0a 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -614,7 +614,7 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned file, unsigned index,
}
nir_ssa_def *offset;
- if (dim) {
+ if (op == nir_intrinsic_load_ubo) {
/* UBO loads don't have a const_index[0] base offset. */
offset = nir_imm_int(b, index);
if (indirect) {