intel/isl: Fix packing of SINT formats

Prevents the next patch from failing many multisampled, signed integer
rendering tests. For example:

 dEQP-VK.renderpass2.suballocation.multisample_resolve.r8_sint.samples_4

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30646>
(cherry picked from commit dfcd93d12f)
This commit is contained in:
Nanley Chery 2024-08-02 15:48:30 -04:00 committed by Eric Engestrom
parent 886406f4f4
commit e4f95a6c0e
2 changed files with 2 additions and 2 deletions

View file

@ -274,7 +274,7 @@
"description": "intel/isl: Fix packing of SINT formats",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1294,7 +1294,7 @@ pack_channel(const union isl_color_value *value, unsigned i,
packed = MIN(value->u32[i], u_uintN_max(layout->bits));
break;
case ISL_SINT:
packed = CLAMP(value->u32[i], u_intN_min(layout->bits),
packed = CLAMP(value->i32[i], u_intN_min(layout->bits),
u_intN_max(layout->bits));
break;