[Mesa-dev] [PATCH v2 0/3] Fix for PerVertexValidation CTS test

Kenneth Graunke kenneth at whitecape.org
Sat Oct 28 18:19:13 UTC 2017


On Friday, October 27, 2017 12:28:16 PM PDT Neil Roberts wrote:
> Hi,
> 
> Here is a v2 of Eduardo’s patches to fix the PerVertexValidation CTS
> test. They were originally posted here:
> 
> https://lists.freedesktop.org/archives/mesa-dev/2017-March/146667.html

Actually, they're even older than that :)

https://lists.freedesktop.org/archives/mesa-dev/2017-January/142386.html

It looks like Timothy was concerned about enforcing restrictions on
unused varyings that get eliminated, and suggested that we file a spec
bug.  So, Eduardo did:

https://gitlab.khronos.org/Tracker/vk-gl-cts/issues/137

The response was that the test is correct as is, and we should indeed
make this change.  So, thanks for picking this up!

> The patches needed a non-trivial rebase. The previous discussion was
> left with a note saying that there are more cases that should fail but
> that weren’t handled by the patches and aren’t checked by the CTS
> test. Ie, if the consuming shader doesn’t reference any of the members
> of gl_PerVertex then it wouldn’t find the block redefinition. This v2
> addresses that by directly fetching the glsl_type for the gl_PerVertex
> block from the symbol table rather waiting for an instruction which
> references it.
> 
> I’ve tested it with Piglit and the public CTS repo and it doesn’t
> cause any regressions, and of course it fixes the CTS test.
> 
> It might be nice to add a Piglit or CTS test to check this missing
> case.
> 
> - Neil

Series is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- 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/20171028/7e33ebfd/attachment.sig>


More information about the mesa-dev mailing list