mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radeonsi: only expose GL_AMD_performance_monitor on gfx7-10.3
It's only implemented for those generations. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26262>
This commit is contained in:
parent
c7729effa6
commit
c5e37e7c39
1 changed files with 3 additions and 0 deletions
|
|
@ -263,6 +263,9 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF:
|
||||
return 0;
|
||||
|
||||
case PIPE_CAP_PERFORMANCE_MONITOR:
|
||||
return sscreen->info.gfx_level >= GFX7 && sscreen->info.gfx_level <= GFX10_3;
|
||||
|
||||
case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE:
|
||||
return enable_sparse ? RADEON_SPARSE_PAGE_SIZE : 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue