diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2018-05-23 17:28:33 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-05-25 10:38:20 +1000 |
commit | 2c4edb57f956ba9adfe4fd7348dabccfd8b9c052 (patch) | |
tree | d7bb9b54f850455ff3c125d9a3aa1bfb81a6b973 | |
parent | 0c759675b2d1057ec79dd9c37d6fbd91a919eeb1 (diff) |
vrend_shader: remove ctx->has_frag_viewport_idx
The functionality seems to be duplicated with ctx->uses_layer.
Reviewed-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/vrend_shader.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vrend_shader.c b/src/vrend_shader.c index a64dcf0..7f535cb 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -153,7 +153,6 @@ struct dump_ctx { bool has_clipvertex; bool has_clipvertex_so; bool has_viewport_idx; - bool has_frag_viewport_idx; bool vs_has_pervertex; bool uses_sample_shading; bool uses_gpu_shader5; @@ -400,7 +399,7 @@ iter_declaration(struct tgsi_iterate_context *iter, ctx->inputs[i].override_no_wm = true; name_prefix = "gl_ViewportIndex"; if (ctx->glsl_ver_required >= 140) - ctx->has_frag_viewport_idx = true; + ctx->uses_layer = true; break; } case TGSI_SEMANTIC_LAYER: @@ -2625,8 +2624,6 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr) STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_texture_gather : require\n"); if (ctx->has_viewport_idx) STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_viewport_array : require\n"); - if (ctx->has_frag_viewport_idx) - STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_fragment_layer_viewport : require\n"); if (ctx->uses_stencil_export) STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_shader_stencil_export : require\n"); if (ctx->uses_layer) |