[virglrenderer-devel] [PATCH 1/3] vrend_shader: remove ctx->has_frag_viewport_idx
Gurchetan Singh
gurchetansingh at chromium.org
Thu May 24 00:28:33 UTC 2018
The functionality seems to be duplicated with ctx->uses_layer.
---
src/vrend_shader.c | 5 +----
1 file changed, 1 insertion(+), 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)
--
2.17.0.441.gb46fe60e1d-goog
More information about the virglrenderer-devel
mailing list