diff --git a/src/gallium/drivers/v3d/v3dx_state.c b/src/gallium/drivers/v3d/v3dx_state.c index 2d19bf75088..9dae0f0f6f5 100644 --- a/src/gallium/drivers/v3d/v3dx_state.c +++ b/src/gallium/drivers/v3d/v3dx_state.c @@ -1008,12 +1008,12 @@ v3dX(create_texture_shader_state_bo)(struct v3d_context *v3d, cso->u.buf.size); } + bool is_srgb = util_format_is_srgb(cso->format); #if V3D_VERSION <= 42 - tex.srgb = util_format_is_srgb(cso->format); + tex.srgb = is_srgb; #endif - #if V3D_VERSION >= 71 - unreachable("HW generation 71 not supported yet."); + tex.transfer_func = is_srgb ? TRANSFER_FUNC_SRGB : TRANSFER_FUNC_NONE; #endif #if V3D_VERSION >= 40 @@ -1067,9 +1067,6 @@ v3dX(create_texture_shader_state_bo)(struct v3d_context *v3d, #if V3D_VERSION <= 42 tex.srgb = false; #endif -#if V3D_VERSION >= 71 - unreachable("HW generation 71 not supported yet."); -#endif } else { tex.texture_type = v3d_get_tex_format(&screen->devinfo,