From: Dave Airlie Date: Mon, 20 Apr 2015 00:29:42 +0000 (+1000) Subject: st/mesa: add subroutine bits (v1.1) X-Git-Tag: upstream/17.1.0~17479 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a922c279930ec1ab34506ca2e24d8a62a297ea33;p=platform%2Fupstream%2Fmesa.git st/mesa: add subroutine bits (v1.1) Just add support for the subroutine type to the glsl->tgsi convertor. v1.1: add subroutine to int support. Acked-by: Kenneth Graunke Signed-off-by: Dave Airlie --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 9553791..905d661 100644 --- 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; \