[Mesa-dev] [PATCH] st/mesa: only set primitive_restart when the restart index is in range

Marek Olšák maraeo at gmail.com
Wed Oct 19 21:14:41 UTC 2016


On Wed, Oct 19, 2016 at 8:39 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> Even when enabled, primitive restart has no effect when the restart index
> is larger than the representable values in the index buffer.
>
> Fixes GL45-CTS.gtf31.GL3Tests.primitive_restart.primitive_restart_upconvert
> for radeonsi.

BTW, this fails on VI, but passes on CIK. The reason is that the hw
team changed the behavior and now it masks out the unused bits I
think. VI is and will be the only generation where it's different and
not configurable.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek


More information about the mesa-dev mailing list