[Mesa-dev] [PATCH] mesa: Clamp ValueMask to [0, 255].

Kenneth Graunke kenneth at whitecape.org
Sun Dec 18 03:39:56 UTC 2016


On Sunday, December 18, 2016 11:33:49 AM PST Chris Forbes wrote:
> I don't see any spec justification for masking this. dEQP is broken here.
> Implementations have the flexibility to retain more bits in the mask (and
> have more bits set in the initial state) than the depth of the deepest
> stencil buffer supported. From the ES3 spec, 4.1.4, second to last para:
> 
>    "In the initial state, ... , and the front and back stencil mask are
> both set to the value 2^s - 1, where s is greater than or equal to the
> number of bits in the deepest stencil buffer supported by the GL
> implementation"
> 
> /ref/ is specified as being clamped on use and on query, which ought to be
> indistinguishable from clamping it upfront.
> 
> - Chris

You're right, this is a hack.  I don't think we should do it.

I don't think dEQP is broken, though - I've got a better idea for how to
solve the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161217/5cb7dad0/attachment.sig>


More information about the mesa-dev mailing list