[virglrenderer-devel] [PATCH] shader: enable ints for instanceid

Robert Tarasov tutankhamen at chromium.org
Thu Jun 14 22:14:56 UTC 2018


Reviewed-by: Robert Tarasov <tutankhamen at chromium.org
<gurchetansingh at chromium.org>>

On Thu, Jun 14, 2018 at 12:14 AM, Dave Airlie <airlied at gmail.com> wrote:

> From: Dave Airlie <airlied at redhat.com>
>
> ---
>  src/vrend_shader.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/vrend_shader.c b/src/vrend_shader.c
> index 96dc40e..60b1d02 100644
> --- a/src/vrend_shader.c
> +++ b/src/vrend_shader.c
> @@ -1132,7 +1132,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
>        ctx->system_values[i].first = decl->Range.First;
>        if (decl->Semantic.Name == TGSI_SEMANTIC_INSTANCEID) {
>           name_prefix = "gl_InstanceID";
> -         ctx->shader_req_bits |= SHADER_REQ_INSTANCE_ID;
> +         ctx->shader_req_bits |= SHADER_REQ_INSTANCE_ID | SHADER_REQ_INTS;
>        } else if (decl->Semantic.Name == TGSI_SEMANTIC_VERTEXID) {
>           name_prefix = "gl_VertexID";
>           ctx->shader_req_bits |= SHADER_REQ_INTS;
> --
> 2.14.3
>
> _______________________________________________
> virglrenderer-devel mailing list
> virglrenderer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/virglrenderer-devel/attachments/20180614/4add4045/attachment.html>


More information about the virglrenderer-devel mailing list