diff options
Diffstat (limited to 'common/recipes-graphics/mesa/mesa/0009-mesa-st-glsl_to_tgsi-move-evaluation-of-read-mask-up.patch')
-rw-r--r-- | common/recipes-graphics/mesa/mesa/0009-mesa-st-glsl_to_tgsi-move-evaluation-of-read-mask-up.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/common/recipes-graphics/mesa/mesa/0009-mesa-st-glsl_to_tgsi-move-evaluation-of-read-mask-up.patch b/common/recipes-graphics/mesa/mesa/0009-mesa-st-glsl_to_tgsi-move-evaluation-of-read-mask-up.patch deleted file mode 100644 index 1dd9e01c..00000000 --- a/common/recipes-graphics/mesa/mesa/0009-mesa-st-glsl_to_tgsi-move-evaluation-of-read-mask-up.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 34cd2bfe90fc659491ec3c89d9bf871615b23192 Mon Sep 17 00:00:00 2001 -From: Gert Wollny <gw.fossdev@gmail.com> -Date: Fri, 9 Feb 2018 11:11:13 +0100 -Subject: [PATCH 09/13] mesa/st/glsl_to_tgsi: move evaluation of read mask up - in the call hierarchy - -In preparation of the array live range tracking the evaluation of the read -mask is moved out the register live range tracking to the enclosing call -of the generalized read access tracking. - -Signed-off-by: Gert Wollny <gw.fossdev@gmail.com> ---- - src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp | 15 ++++++++------- - 1 file changed, 8 insertions(+), 7 deletions(-) - -diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp -index ae3ea17..4734a98 100644 ---- a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp -+++ b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp -@@ -494,13 +494,8 @@ void temp_access::record_write(int line, prog_scope *scope, int writemask) - comp[3].record_write(line, scope); - } - --void temp_access::record_read(int line, prog_scope *scope, int swizzle) -+void temp_access::record_read(int line, prog_scope *scope, int readmask) - { -- int readmask = 0; -- for (int idx = 0; idx < 4; ++idx) { -- int swz = GET_SWZ(swizzle, idx); -- readmask |= (1 << swz) & 0xF; -- } - update_access_mask(readmask); - - if (readmask & WRITEMASK_X) -@@ -926,8 +921,14 @@ access_recorder::~access_recorder() - void access_recorder::record_read(const st_src_reg& src, int line, - prog_scope *scope) - { -+ int readmask = 0; -+ for (int idx = 0; idx < 4; ++idx) { -+ int swz = GET_SWZ(src.swizzle, idx); -+ readmask |= (1 << swz) & 0xF; -+ } -+ - if (src.file == PROGRAM_TEMPORARY) -- temp_acc[src.index].record_read(line, scope, src.swizzle); -+ temp_acc[src.index].record_read(line, scope, readmask); - - if (src.reladdr) - record_read(*src.reladdr, line, scope); --- -2.7.4 - |