mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 08:50:24 +01:00
dri: Add R32F,RG32F,RGBA32F format mappings for DRIImage
Add pipe format to sized internal format mappings for R32F,
RG32F and RGBA32F in the DRIImage format table. This fixes shader
image store operations on EGL images imported from DMA-BUF with
respective DRM formats.
Without these mappings, DMA-BUF imported textures received base internal
formats instead of sized internal formats, causing shader image unit
validation to fail and DispatchCompute write zeroes on compute shader
imageStore operation.
Fixes: 6d3f266406 ("dri: Add additional 16/32b float/int formats")
Signed-off-by: Lakshman Chandu Kondreddy <lkondred@qti.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39004>
This commit is contained in:
parent
c2c9266fed
commit
ffb5d5d224
1 changed files with 12 additions and 0 deletions
|
|
@ -903,6 +903,18 @@ static const struct {
|
|||
.image_format = __DRI_IMAGE_FORMAT_XBGR16161616,
|
||||
.internal_format = GL_RGB16,
|
||||
},
|
||||
{
|
||||
.image_format = PIPE_FORMAT_R32G32B32A32_FLOAT,
|
||||
.internal_format = GL_RGBA32F,
|
||||
},
|
||||
{
|
||||
.image_format = PIPE_FORMAT_R32_FLOAT,
|
||||
.internal_format = GL_R32F,
|
||||
},
|
||||
{
|
||||
.image_format = PIPE_FORMAT_R32G32_FLOAT,
|
||||
.internal_format = GL_RG32F,
|
||||
},
|
||||
{
|
||||
.image_format = __DRI_IMAGE_FORMAT_ARGB2101010,
|
||||
.internal_format = GL_RGB10_A2,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue