The blorp_surface_info_init call above should set the format for us and
stomping it later does nothing whatsoever.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
struct brw_blorp_params params;
brw_blorp_params_init(¶ms);
+ /* Override the surface format according to the context's sRGB rules. */
if (!encode_srgb && _mesa_get_format_color_encoding(format) == GL_SRGB)
format = _mesa_get_srgb_format_linear(format);
brw_blorp_to_isl_format(brw, format, true),
true);
- /* Override the surface format according to the context's sRGB rules. */
- params.dst.view.format = (enum isl_format)brw->render_target_format[format];
-
const char *clear_type;
if (is_fast_clear)
clear_type = "fast";