mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-17 23:30:36 +02:00
zink: fix PIPE_SHADER_CAP_FP16_DERIVATIVES handling
this requires 16bit io, not just alus Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12634>
This commit is contained in:
parent
5ce3fa0100
commit
71aa4adba3
1 changed files with 3 additions and 1 deletions
|
|
@ -816,8 +816,10 @@ zink_get_shader_param(struct pipe_screen *pscreen,
|
|||
case PIPE_SHADER_CAP_GLSL_16BIT_CONSTS:
|
||||
return 0; /* not implemented */
|
||||
|
||||
case PIPE_SHADER_CAP_FP16:
|
||||
case PIPE_SHADER_CAP_FP16_DERIVATIVES:
|
||||
return screen->info.feats11.storageInputOutput16 ||
|
||||
(screen->info.have_KHR_16bit_storage && screen->info.storage_16bit_feats.storageInputOutput16);
|
||||
case PIPE_SHADER_CAP_FP16:
|
||||
return screen->info.feats12.shaderFloat16 ||
|
||||
(screen->info.have_KHR_shader_float16_int8 &&
|
||||
screen->info.shader_float16_int8_feats.shaderFloat16);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue