mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
turnip: no linear_to_srgb for alpha channel for gmem clear value packing
Alpha channel is always linear (oops). Fixes:ddac5933f8("turnip: call packing functions directly for pack_gmem_clear_value") Signed-off-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899> (cherry picked from commitd7ea266e6f) Conflicts: .gitlab-ci/deqp-freedreno-a630-fails.txt
This commit is contained in:
parent
5d24ae64c9
commit
18fd255402
3 changed files with 2 additions and 4 deletions
|
|
@ -1,8 +1,6 @@
|
|||
# Possibly https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2035 related,Fail
|
||||
dEQP-GLES2.functional.clipping.triangle_vertex.clip_three.clip_neg_x_neg_z_and_pos_x_pos_z_and_neg_x_neg_y_pos_z,Fail
|
||||
|
||||
dEQP-VK.api.image_clearing.core.clear_color_attachment.single_layer.a8b8g8r8_srgb_pack32_1x33,Fail
|
||||
dEQP-VK.api.image_clearing.dedicated_allocation.clear_color_attachment.single_layer.b8g8r8a8_srgb_33x128,Fail
|
||||
dEQP-VK.compute.indirect_dispatch.upload_buffer.multi_dispatch,Fail
|
||||
dEQP-VK.draw.output_location.array.r8g8-uint-mediump-output-uint,Fail
|
||||
dEQP-VK.memory_model.message_passing.core11.u32.coherent.fence_fence.atomicwrite.device.payload_local.image.guard_nonlocal.workgroup.comp,Fail
|
||||
|
|
|
|||
|
|
@ -796,7 +796,7 @@
|
|||
"description": "turnip: no linear_to_srgb for alpha channel for gmem clear value packing",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "ddac5933f8f30df66b389c32a634dab16cff5a4c"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1983,7 +1983,7 @@ pack_gmem_clear_value(const VkClearValue *val, VkFormat format, uint32_t clear_v
|
|||
float tmp[4];
|
||||
memcpy(tmp, val->color.float32, 4 * sizeof(float));
|
||||
if (vk_format_is_srgb(format)) {
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int i = 0; i < 3; i++)
|
||||
tmp[i] = util_format_linear_to_srgb_float(tmp[i]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue