panfrost: Texture from Z32F_S8 as R32F

Z32F_S8 becomes Z32F in texturing, which in turn just becomes R32F.

Fixes dEQP-GLES3.functional.texture.format.sized.*.depth32f_stencil8*

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2020-01-03 11:26:43 -05:00
parent f3ca47d9f3
commit ef8c2ebee1
1 changed files with 4 additions and 0 deletions

View File

@ -185,6 +185,10 @@ panfrost_find_format(const struct util_format_description *desc) {
case PIPE_FORMAT_Z24_UNORM_S8_UINT:
return MALI_Z32_UNORM;
case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT:
/* Z32F = R32F to the hardware */
return MALI_R32F;
case PIPE_FORMAT_B5G6R5_UNORM:
return MALI_RGB565;