mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
isl: Don't use surface format R32_FLOAT for typed atomic integer operations
From Skylake PRM Surface Formats section:
"The surface format for the typed atomic integer operations must
be R32_UINT or R32_SINT."
Fixes an error and a piglit GPU hang in simulation environment.
Piglit test: gl45-imageAtomicExchange-float.shader_test
Suggested-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.co
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "18.0 17.3" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 0cd37f9178)
This commit is contained in:
parent
64c3a46906
commit
58a0e9e1d6
1 changed files with 8 additions and 1 deletions
|
|
@ -88,9 +88,16 @@ isl_lower_storage_image_format(const struct gen_device_info *devinfo,
|
|||
case ISL_FORMAT_R32G32B32A32_FLOAT:
|
||||
case ISL_FORMAT_R32_UINT:
|
||||
case ISL_FORMAT_R32_SINT:
|
||||
case ISL_FORMAT_R32_FLOAT:
|
||||
return format;
|
||||
|
||||
/* The Skylake PRM's "Surface Formats" section says:
|
||||
*
|
||||
* "The surface format for the typed atomic integer operations must
|
||||
* be R32_UINT or R32_SINT."
|
||||
*/
|
||||
case ISL_FORMAT_R32_FLOAT:
|
||||
return ISL_FORMAT_R32_UINT;
|
||||
|
||||
/* From HSW to BDW the only 64bpp format supported for typed access is
|
||||
* RGBA_UINT16. IVB falls back to untyped.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue