mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
zink: check for pipeline statistics feature
This cap depends on a feature-bit.
Fixes: cb5957e13d ("zink: enable pipeline statistics cap")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9803>
This commit is contained in:
parent
f64ef064de
commit
f6f2cbeb44
2 changed files with 4 additions and 1 deletions
|
|
@ -199,6 +199,7 @@ are required to be supported
|
|||
* ``VkPhysicalDeviceFeatures``:
|
||||
|
||||
* ``samplerAnisotropy``
|
||||
* ``pipelineStatisticsQuery``
|
||||
|
||||
* Device extensions:
|
||||
|
||||
|
|
|
|||
|
|
@ -247,12 +247,14 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_DRAW_PARAMETERS:
|
||||
case PIPE_CAP_POLYGON_OFFSET_CLAMP:
|
||||
case PIPE_CAP_QUERY_SO_OVERFLOW:
|
||||
case PIPE_CAP_QUERY_PIPELINE_STATISTICS_SINGLE:
|
||||
case PIPE_CAP_GL_SPIRV:
|
||||
case PIPE_CAP_CLEAR_SCISSORED:
|
||||
case PIPE_CAP_INVALIDATE_BUFFER:
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_QUERY_PIPELINE_STATISTICS_SINGLE:
|
||||
return screen->info.feats.features.pipelineStatisticsQuery;
|
||||
|
||||
case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR:
|
||||
return screen->info.feats.features.robustBufferAccess;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue