<div dir="ltr"><span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Reviewed-by: Gurchetan Singh <</span><a href="mailto:gurchetansingh@chromium.org" target="_blank" style="color:rgb(17,85,204)">gurchetansingh@chromium.org</a><span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">></span><br style="text-decoration-style:initial;text-decoration-color:initial"><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 13, 2018 at 9:36 PM Dave Airlie <<a href="mailto:airlied@gmail.com">airlied@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com" target="_blank">airlied@redhat.com</a>><br>
<br>
This fixes a broken shader compile with:<br>
KHR-GL43.texture_swizzle.smoke<br>
---<br>
src/vrend_shader.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/vrend_shader.c b/src/vrend_shader.c<br>
index 974e891..96dc40e 100644<br>
--- a/src/vrend_shader.c<br>
+++ b/src/vrend_shader.c<br>
@@ -1065,6 +1065,9 @@ iter_declaration(struct tgsi_iterate_context *iter,<br>
return FALSE;<br>
}<br>
ctx->samplers[decl->Range.First].tgsi_sampler_return = decl->SamplerView.ReturnTypeX;<br>
+ if (decl->SamplerView.ReturnTypeX == TGSI_RETURN_TYPE_SINT ||<br>
+ decl->SamplerView.ReturnTypeX == TGSI_RETURN_TYPE_UINT)<br>
+ ctx->shader_req_bits |= SHADER_REQ_INTS;<br>
if (ctx->info.indirect_files & (1 << TGSI_FILE_SAMPLER)) {<br>
if (ctx->last_sampler_array_idx != -1) {<br>
if (ctx->sampler_arrays[ctx->last_sampler_array_idx].sview_type == decl->SamplerView.Resource &&<br>
-- <br>
2.14.3<br>
<br>
_______________________________________________<br>
virglrenderer-devel mailing list<br>
<a href="mailto:virglrenderer-devel@lists.freedesktop.org" target="_blank">virglrenderer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel</a><br>
</blockquote></div>