freedreno/fdl: Set sRGB bit for storage images

This probably wasn't noticed earlier because tests using sRGB storage
images didn't exist, and we didn't know whether this works, but this
fixes dEQP-VK.image.store.without_format.2d.*_srgb which also proves
that the bit works.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20060>
(cherry picked from commit ccef6d1f5f)
This commit is contained in:
Connor Abbott 2022-11-29 15:56:39 +01:00 committed by Eric Engestrom
parent 2cabe4167f
commit b022752572
2 changed files with 2 additions and 1 deletions

View file

@ -5557,7 +5557,7 @@
"description": "freedreno/fdl: Set sRGB bit for storage images",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -382,6 +382,7 @@ fdl6_view_init(struct fdl6_view *view, const struct fdl_layout **layouts,
view->storage_descriptor[0] =
A6XX_TEX_CONST_0_FMT(storage_format) |
COND(util_format_is_srgb(args->format), A6XX_TEX_CONST_0_SRGB) |
fdl6_texswiz(args, has_z24uint_s8uint) |
A6XX_TEX_CONST_0_TILE_MODE(tile_mode) |
A6XX_TEX_CONST_0_SWAP(color_swap);