From bd6f51ec21079ba7d6dc2b203cb4920bb893aa12 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Wed, 20 Mar 2019 08:41:06 -0700 Subject: [PATCH] intel/blorp: Make swizzle_color_value public. Reviewed-by: Kenneth Graunke --- src/intel/blorp/blorp.h | 3 +++ src/intel/blorp/blorp_clear.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index fd17f95c118..df48e91cecc 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -160,6 +160,9 @@ blorp_buffer_copy(struct blorp_batch *batch, struct blorp_address dst, uint64_t size); +union isl_color_value +swizzle_color_value(union isl_color_value src, struct isl_swizzle swizzle); + void blorp_fast_clear(struct blorp_batch *batch, const struct blorp_surf *surf, enum isl_format format, diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index 657f5970d48..982028dd49d 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -361,7 +361,7 @@ blorp_fast_clear(struct blorp_batch *batch, batch->blorp->exec(batch, ¶ms); } -static union isl_color_value +union isl_color_value swizzle_color_value(union isl_color_value src, struct isl_swizzle swizzle) { union isl_color_value dst = { .u32 = { 0, } }; -- 2.30.2