summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-06-25 14:58:37 +0200
committerMarek Olšák <[email protected]>2015-06-25 15:05:56 +0200
commit101a73846b48ebac8e2386a25b24659f013c66a4 (patch)
treeab0c4cbe8ec1968e41dc0a0c85f7ee772f1ee0e7 /src/gallium/drivers/radeonsi/si_shader.c
parentc97105ee12e54ab893351ebbda8c2348c899adde (diff)
radeonsi: don't fail in si_shader_io_get_unique_index
Trivial. Picked from my tessellation branch.
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 47e5f96cbed..a293ef36fbb 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -133,8 +133,12 @@ unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index)
return 4 + index;
default:
- assert(0);
- return 63;
+ /* Don't fail here. The result of this function is only used
+ * for LS, TCS, TES, and GS, where legacy GL semantics can't
+ * occur, but this function is called for all vertex shaders
+ * before it's known whether LS will be compiled or not.
+ */
+ return 0;
}
}