diff --git a/.pick_status.json b/.pick_status.json index 50e697be3e3..2809b5641e1 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1114,7 +1114,7 @@ "description": "radv: fix UB in radv_format_pack_clear_color for snorm formats", "nominated": false, "nomination_type": 2, - "resolution": 4, + "resolution": 1, "main_sha": null, "because_sha": "585c25be1e1a96568829542f2765e97c63d79939", "notes": null diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 2b37f79336f..90d31608298 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -592,7 +592,7 @@ radv_format_pack_clear_color(VkFormat format, uint32_t clear_vals[2], VkClearCol else f -= 0.5f; - v = (uint64_t)f; + v = (uint64_t)(int64_t)f; } } else if (channel->type == UTIL_FORMAT_TYPE_FLOAT) { if (channel->size == 32) {