diff options
author | Dave Airlie <airlied@redhat.com> | 2015-12-21 11:39:33 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-01-18 15:33:57 +1000 |
commit | 0e60c8568970b75f8b7da2b4f029f08b9907fc4e (patch) | |
tree | 81a766bff6e32b2d18ac54bced83aaa711bbb441 | |
parent | 42cc440c01370af9940928208f3752b79e177a5c (diff) |
start scanning shader
-rw-r--r-- | src/vrend_shader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 7702767..666cfb8 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -24,6 +24,7 @@ #include "tgsi/tgsi_info.h" #include "tgsi/tgsi_iterate.h" +#include "tgsi/tgsi_scan.h" #include "util/u_memory.h" #include <string.h> #include <stdio.h> @@ -76,6 +77,7 @@ struct vrend_temp_range { struct dump_ctx { struct tgsi_iterate_context iter; struct vrend_shader_cfg *cfg; + struct tgsi_shader_info info; int prog_type; int size; char *glsl_main; @@ -2480,6 +2482,7 @@ char *vrend_convert_shader(struct vrend_shader_cfg *cfg, ctx.cfg = cfg; ctx.prog_type = -1; + tgsi_scan_shader(tokens, &ctx.info); /* if we are in core profile mode we should use GLSL 1.40 */ if (cfg->use_core_profile && cfg->glsl_version >= 140) ctx.glsl_ver_required = 140; |