mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
panfrost: Enable NV_primitive_restart on Valhall
Unlike literally every other mesa/st emulation, for some inexplicable reason we need to pretend to support the CAP and then set a different EMULATE cap instead of the emulation keying off the lack of support for the CAP. Set the CAPs accordingly so we get NV_primitive_restart (with emulation of non-fixed indices). This gets Mesa to advertise GL 3.1 on Mali-G57 as intended. Fixes:30c14f54cf("panfrost: Disable PIPE_CAP_PRIMITIVE_RESTART on v9") Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20702> (cherry picked from commitfe4dc59e99)
This commit is contained in:
parent
aec46cecfa
commit
d8db0ee96d
2 changed files with 4 additions and 3 deletions
|
|
@ -4801,7 +4801,7 @@
|
|||
"description": "panfrost: Enable NV_primitive_restart on Valhall",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "30c14f54cf2bbf86f3d8f16a3d46edad6d0fce7c"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ 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;
|
||||
|
||||
|
|
@ -298,8 +299,8 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
/* 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_EMULATE_NONFIXED_PRIMITIVE_RESTART:
|
||||
return dev->arch <= 9;
|
||||
|
||||
case PIPE_CAP_FLATSHADE:
|
||||
case PIPE_CAP_TWO_SIDED_COLOR:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue