projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6cf98b
)
ttn: small logic cleanup
author
Rob Clark
<robclark@freedesktop.org>
Thu, 21 Jan 2016 18:32:37 +0000
(13:32 -0500)
committer
Rob Clark
<robclark@freedesktop.org>
Tue, 9 Feb 2016 22:30:33 +0000
(17:30 -0500)
The only case where dim!=NULL is where op==load_ubo. But using
op==load_ubo is less confusing.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/nir/tgsi_to_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/nir/tgsi_to_nir.c
b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 3e7d69f73ed32aafc1baeae430114b5af5f61c76..89c16650b0a20a95ca35b8e3f1a850a0d6ef6360 100644
(file)
--- 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) {