aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-01-03 11:26:43 -0500
committerAlyssa Rosenzweig <[email protected]>2020-01-06 07:49:33 -0500
commitef8c2ebee185116e0bd3c57658b7e018bb0a23ea (patch)
tree0c15d6b3ca99a3efdf9b95ec72cf6f9f0865057f /src/gallium/drivers/panfrost
parentf3ca47d9f389404aa9c2098a865d0becc53cc189 (diff)
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 <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_format.c b/src/gallium/drivers/panfrost/pan_format.c
index 77a2e7f9386..16bc5edc6c9 100644
--- a/src/gallium/drivers/panfrost/pan_format.c
+++ b/src/gallium/drivers/panfrost/pan_format.c
@@ -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;