projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f57fda
)
st/mesa: add subroutine bits (v1.1)
author
Dave Airlie
<airlied@redhat.com>
Mon, 20 Apr 2015 00:29:42 +0000
(10:29 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 23 Jul 2015 07:26:04 +0000
(17:26 +1000)
Just add support for the subroutine type to the
glsl->tgsi convertor.
v1.1: add subroutine to int support.
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 9553791b07a2f25f1223df00d54d53d3b85e3b56..905d661a43722449e3606d5f00b282c2f3534797 100644
(file)
--- a/
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@
-815,7
+815,7
@@
glsl_to_tgsi_visitor::get_opcode(ir_instruction *ir, unsigned op,
case TGSI_OPCODE_##c: \
if (type == GLSL_TYPE_DOUBLE) \
op = TGSI_OPCODE_##d; \
- else if (type == GLSL_TYPE_INT) \
+ else if (type == GLSL_TYPE_INT
|| type == GLSL_TYPE_SUBROUTINE
) \
op = TGSI_OPCODE_##i; \
else if (type == GLSL_TYPE_UINT) \
op = TGSI_OPCODE_##u; \