summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2020-09-18 10:47:30 +0200
committerMarge Bot <eric+marge@anholt.net>2020-09-29 11:48:31 +0000
commitd4d5382963f1e120e579ba48f9787a022a6420c2 (patch)
tree6ce09c3c5a040412585e627c1c4f33d21d56c97c
parentdfc1d54b5b681e449698a00b44dca57df2376e9b (diff)
panfrost: Add support for rbg16 formats
Fixes: 171e94fe629 ("mesa/st: enable EXT_color_buffer_half_float when formats supported") Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6887>
-rw-r--r--.gitlab-ci/deqp-panfrost-t860-fails.txt21
-rw-r--r--src/gallium/drivers/panfrost/pan_mfbd.c7
2 files changed, 7 insertions, 21 deletions
diff --git a/.gitlab-ci/deqp-panfrost-t860-fails.txt b/.gitlab-ci/deqp-panfrost-t860-fails.txt
index f4a7fa3e830..1ff0008fe65 100644
--- a/.gitlab-ci/deqp-panfrost-t860-fails.txt
+++ b/.gitlab-ci/deqp-panfrost-t860-fails.txt
@@ -40,24 +40,3 @@ dEQP-GLES3.functional.fbo.msaa.4_samples.rgba16f
dEQP-GLES3.functional.fbo.msaa.4_samples.rgba32f
dEQP-GLES3.functional.fbo.msaa.4_samples.stencil_index8
dEQP-GLES3.functional.fence_sync.client_wait_sync_finish
-dEQP-GLES3.functional.fbo.color.blend.rgb16f_src_over
-dEQP-GLES3.functional.fbo.color.clear.rgb16f
-dEQP-GLES3.functional.fbo.color.repeated_clear.blit.rbo.rgb16f
-dEQP-GLES3.functional.fbo.color.repeated_clear.blit.tex2d.rgb16f
-dEQP-GLES3.functional.fbo.color.repeated_clear.sample.tex2d.rgb16f
-dEQP-GLES3.functional.fbo.color.tex2d.rgb16f
-dEQP-GLES3.functional.fbo.color.tex2darray.rgb16f
-dEQP-GLES3.functional.fbo.color.tex3d.rgb16f
-dEQP-GLES3.functional.fbo.color.texcube.rgb16f
-dEQP-GLES3.functional.fbo.render.recreate_color.tex2d_rgb16f_depth_stencil_rbo_depth24_stencil8
-dEQP-GLES3.functional.fbo.render.resize.rbo_rgb16f
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer.rbo_rgb16f_depth_rbo_depth24_stencil8
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer.tex2d_rgb16f
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer.tex2d_rgb16f_depth_stencil_rbo_depth24_stencil8
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer_clear.tex2d_rgb16f
-dEQP-GLES3.functional.fbo.render.recreate_color.rbo_rgb16f_depth_stencil_rbo_depth24_stencil8
-dEQP-GLES3.functional.fbo.render.resize.tex2d_rgb16f
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer.rbo_rgb16f
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer.rbo_rgb16f_depth_stencil_rbo_depth24_stencil8
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer.tex2d_rgb16f_depth_rbo_depth24_stencil8
-dEQP-GLES3.functional.fbo.render.shared_colorbuffer_clear.rbo_rgb16f
diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c
index 1e80b579960..c062d5241e0 100644
--- a/src/gallium/drivers/panfrost/pan_mfbd.c
+++ b/src/gallium/drivers/panfrost/pan_mfbd.c
@@ -177,6 +177,13 @@ panfrost_mfbd_rt_init_format(struct pipe_surface *surf,
rt->writeback_format = MALI_MFBD_COLOR_FORMAT_RAW64;
break;
+ case PIPE_FORMAT_R16G16B16_FLOAT:
+ case PIPE_FORMAT_R16G16B16_SINT:
+ case PIPE_FORMAT_R16G16B16_UINT:
+ rt->internal_format = MALI_COLOR_BUFFER_INTERNAL_FORMAT_RAW64;
+ rt->writeback_format = MALI_MFBD_COLOR_FORMAT_RAW48;
+ break;
+
/* Generic 128-bit */
case PIPE_FORMAT_R32G32B32A32_FLOAT:
case PIPE_FORMAT_R32G32B32A32_SINT: