tex.array_stride_64_byte_aligned = image->planes[iplane].cube_map_stride / 64;
+ bool is_srgb = vk_format_is_srgb(image_view->vk.format);
#if V3D_VERSION == 42
tex.reverse_standard_border_color = image_view->planes[plane].channel_reverse;
#endif
#if V3D_VERSION == 42
- tex.srgb = vk_format_is_srgb(image_view->vk.view_format);
+ tex.srgb = is_srgb;
#endif
#if V3D_VERSION >= 71
- unreachable("Hardware generation 71 not supported yet.");
+ tex.transfer_func = is_srgb ? TRANSFER_FUNC_SRGB : TRANSFER_FUNC_NONE;
#endif
/* At this point we don't have the job. That's the reason the first
assert(buffer_view->format->plane_count == 1);
tex.texture_type = buffer_view->format->planes[0].tex_type;
+
+ bool is_srgb = vk_format_is_srgb(buffer_view->vk_format);
#if V3D_VERSION == 42
- tex.srgb = vk_format_is_srgb(buffer_view->vk_format);
+ tex.srgb = is_srgb;
#endif
#if V3D_VERSION >= 71
- unreachable("Hardware generation 71 not supported yet.");
+ tex.transfer_func = is_srgb ? TRANSFER_FUNC_SRGB : TRANSFER_FUNC_NONE;
#endif
/* At this point we don't have the job. That's the reason the first