[virglrenderer-devel] [PATCH 1/2] vrend_shader: use require_glsl_ver function

Gurchetan Singh gurchetansingh at chromium.org
Wed Aug 1 20:57:13 UTC 2018


There were a couple of places that didn't use it.
---
 src/vrend_shader.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vrend_shader.c b/src/vrend_shader.c
index 2535a957b6..891e1eec99 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -1091,7 +1091,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
                color_offset = -1;
          if (indirect && ctx->outputs[i].name == TGSI_SEMANTIC_GENERIC) {
             ctx->outputs[i].glsl_predefined_no_emit = true;
-            ctx->glsl_ver_required = 150;
+            require_glsl_ver(ctx, 150);
             if (ctx->outputs[i].sid < ctx->generic_output_range.first || ctx->generic_output_range.used == false) {
                ctx->generic_output_range.array_id = i;
                ctx->generic_output_range.first = ctx->outputs[i].sid;
@@ -1104,7 +1104,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
       case TGSI_SEMANTIC_PATCH:
          if (indirect && ctx->outputs[i].name == TGSI_SEMANTIC_PATCH) {
             ctx->outputs[i].glsl_predefined_no_emit = true;
-            ctx->glsl_ver_required = 150;
+            require_glsl_ver(ctx, 150);
             if (ctx->outputs[i].sid < ctx->patch_output_range.first || ctx->patch_output_range.used == false) {
                ctx->patch_output_range.array_id = i;
                ctx->patch_output_range.first = ctx->outputs[i].sid;
-- 
2.18.0.597.ga71716f1ad-goog



More information about the virglrenderer-devel mailing list