[virglrenderer-devel] [PATCH] expand gl_SampleMask to ivec4 to match TGSI definition

Dave Airlie airlied at gmail.com
Fri Jul 6 00:12:19 UTC 2018

On 5 July 2018 at 17:43, Erik Faye-Lund <erik.faye-lund at collabora.com> wrote:
> TGSI defines TGSI_SEMANTIC_SAMPLEMASK to be a four-compoent integer
> vector, with the x component set to the same value as gl_SampleMask,
> and the y, z and w components set to 0.

I think the other patch was more correct, the value is SV[0].xxxx, which means
it's swizzled X into all 4 components.

Granted I don't think we'll see a samplemask with a different swizzle than that
so just the previous patch should be enough.


More information about the virglrenderer-devel mailing list