zink: check for depth-bias-clamp feature
This cap depends on a feature-bit.
Fixes: 3d7d55c2cf
("zink: enable PIPE_CAP_POLYGON_OFFSET_CLAMP")
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
f6f2cbeb44
commit
215ff8246f
|
@ -29,7 +29,6 @@ Here's a list of those requirements:
|
|||
|
||||
* ``logicOp``
|
||||
* ``depthClamp``
|
||||
* ``depthBiasClamp``
|
||||
* ``fillModeNonSolid``
|
||||
* ``wideLines``
|
||||
* ``largePoints``
|
||||
|
@ -200,6 +199,7 @@ are required to be supported
|
|||
|
||||
* ``samplerAnisotropy``
|
||||
* ``pipelineStatisticsQuery``
|
||||
* ``depthBiasClamp``
|
||||
|
||||
* Device extensions:
|
||||
|
||||
|
|
|
@ -245,13 +245,15 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_TEXTURE_BARRIER:
|
||||
case PIPE_CAP_TGSI_VOTE:
|
||||
case PIPE_CAP_DRAW_PARAMETERS:
|
||||
case PIPE_CAP_POLYGON_OFFSET_CLAMP:
|
||||
case PIPE_CAP_QUERY_SO_OVERFLOW:
|
||||
case PIPE_CAP_GL_SPIRV:
|
||||
case PIPE_CAP_CLEAR_SCISSORED:
|
||||
case PIPE_CAP_INVALIDATE_BUFFER:
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_POLYGON_OFFSET_CLAMP:
|
||||
return screen->info.feats.features.depthBiasClamp;
|
||||
|
||||
case PIPE_CAP_QUERY_PIPELINE_STATISTICS_SINGLE:
|
||||
return screen->info.feats.features.pipelineStatisticsQuery;
|
||||
|
||||
|
|
Loading…
Reference in New Issue