mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 02:28:20 +02:00
radv/meta: remove dead code for VK_FORMAT_R4G4_UNORM_PACK8
This isn't supported at all. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39689>
This commit is contained in:
parent
cd54224a73
commit
181bb1fc93
1 changed files with 0 additions and 8 deletions
|
|
@ -1925,14 +1925,6 @@ radv_cmd_clear_image(struct radv_cmd_buffer *cmd_buffer, struct radv_image *imag
|
|||
}
|
||||
}
|
||||
|
||||
if (format == VK_FORMAT_R4G4_UNORM_PACK8) {
|
||||
uint8_t r, g;
|
||||
format = VK_FORMAT_R8_UINT;
|
||||
r = float_to_ubyte(clear_value->color.float32[0]) >> 4;
|
||||
g = float_to_ubyte(clear_value->color.float32[1]) >> 4;
|
||||
internal_clear_value.color.uint32[0] = (r << 4) | (g & 0xf);
|
||||
}
|
||||
|
||||
for (uint32_t r = 0; r < range_count; r++) {
|
||||
const VkImageSubresourceRange *range = &ranges[r];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue