panfrost: Disable PIPE_CAP_PRIMITIVE_RESTART on v9
Valhall removed the ability to set an explicit primitive restart index as required by desktop OpenGL, in favour of fixed primitive restart indices only as required by OpenGL ES. Set the CAPs accordingly so that mesa/st lowers unusual primitive restart indices at draw call time. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15795>
This commit is contained in:

committed by
Marge Bot

parent
dd735bcb69
commit
30c14f54cf
@@ -133,7 +133,6 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_OCCLUSION_QUERY:
|
||||
case PIPE_CAP_PRIMITIVE_RESTART:
|
||||
case PIPE_CAP_PRIMITIVE_RESTART_FIXED_INDEX:
|
||||
return true;
|
||||
|
||||
@@ -289,6 +288,12 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
||||
case PIPE_CAP_ALPHA_TEST:
|
||||
return dev->arch <= 5;
|
||||
|
||||
/* Removed in v9 (Valhall). PRIMTIIVE_RESTART_FIXED_INDEX is of course
|
||||
* still supported as it is core GLES3.0 functionality
|
||||
*/
|
||||
case PIPE_CAP_PRIMITIVE_RESTART:
|
||||
return dev->arch <= 7;
|
||||
|
||||
case PIPE_CAP_FLATSHADE:
|
||||
case PIPE_CAP_TWO_SIDED_COLOR:
|
||||
case PIPE_CAP_CLIP_PLANES:
|
||||
|
Reference in New Issue
Block a user