diff options
author | Dave Airlie <airlied@redhat.com> | 2015-12-21 11:39:33 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-05-11 10:00:21 +1000 |
commit | 89210ffcb197cbc65d3b78b786e05c33b0ecb56e (patch) | |
tree | 7e9e55f5be257997f4ef414d3b9ef1b9bb037726 | |
parent | 7f615cdee1c0caeb6ce6eac6ce5b24caef7b2a95 (diff) |
shader: start running tgsi scanner on shader.
We will use the scanner to find a few things needed for ARB_gpu_shader5.
-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 1ce18de..b2573d5 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 "util/u_math.h" #include <string.h> @@ -80,6 +81,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; @@ -2784,6 +2786,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; |