Mesa (master): intel/blorp: Delete clear color conversions during copies
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 13 21:54:18 UTC 2020
Module: Mesa
Branch: master
Commit: 4bb5a6c30a79f9a2d95b7c61addac7caecff9219
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bb5a6c30a79f9a2d95b7c61addac7caecff9219
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Fri Jun 5 15:35:25 2020 -0700
intel/blorp: Delete clear color conversions during copies
With the last commit, there are no more users of this code.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5388>
---
src/intel/blorp/blorp_blit.c | 36 ------------------------------------
1 file changed, 36 deletions(-)
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index 18d4ad756ec..4e2b66e0979 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -2707,42 +2707,6 @@ blorp_copy(struct blorp_batch *batch,
params.src.view.format = get_copy_format_for_bpb(isl_dev, src_fmtl->bpb);
}
- if (params.src.aux_usage == ISL_AUX_USAGE_CCS_E) {
- /* It's safe to do a blorp_copy between things which are sRGB with CCS_E
- * enabled even though CCS_E doesn't technically do sRGB on SKL because
- * we stomp everything to UINT anyway. The one thing we have to be
- * careful of is clear colors. Because fast clear colors for sRGB on
- * gen9 are encoded as the float values between format conversion and
- * sRGB curve application, a given clear color float will convert to the
- * same bits regardless of whether the format is UNORM or sRGB.
- * Therefore, we can handle sRGB without any special cases.
- */
- UNUSED enum isl_format linear_src_format =
- isl_format_srgb_to_linear(src_surf->surf->format);
- assert(isl_formats_are_ccs_e_compatible(batch->blorp->isl_dev->info,
- linear_src_format,
- params.src.view.format));
- uint32_t packed[4];
- isl_color_value_pack(¶ms.src.clear_color,
- linear_src_format, packed);
- isl_color_value_unpack(¶ms.src.clear_color,
- params.src.view.format, packed);
- }
-
- if (params.dst.aux_usage == ISL_AUX_USAGE_CCS_E) {
- /* See above where we handle linear_src_format */
- UNUSED enum isl_format linear_dst_format =
- isl_format_srgb_to_linear(dst_surf->surf->format);
- assert(isl_formats_are_ccs_e_compatible(batch->blorp->isl_dev->info,
- linear_dst_format,
- params.dst.view.format));
- uint32_t packed[4];
- isl_color_value_pack(¶ms.dst.clear_color,
- linear_dst_format, packed);
- isl_color_value_unpack(¶ms.dst.clear_color,
- params.dst.view.format, packed);
- }
-
if (params.src.view.format != params.dst.view.format) {
enum isl_format src_cast_format = params.src.view.format;
enum isl_format dst_cast_format = params.dst.view.format;
More information about the mesa-commit
mailing list