projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a638d
)
gallivm/nir: lower tg4 offsets.
author
Dave Airlie
<airlied@redhat.com>
Fri, 19 Jun 2020 07:01:26 +0000
(17:01 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 31 Aug 2020 00:28:30 +0000
(10:28 +1000)
Fixes:
dEQP-VK.glsl.texture_gather.offsets.*
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6381>
src/gallium/auxiliary/gallivm/lp_bld_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index
f407f62
..
4c919e7
100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@
-2016,6
+2016,12
@@
bool lp_build_nir_llvm(
void lp_build_opt_nir(struct nir_shader *nir)
{
bool progress;
+
+ static const struct nir_lower_tex_options lower_tex_options = {
+ .lower_tg4_offsets = true,
+ };
+ NIR_PASS_V(nir, nir_lower_tex, &lower_tex_options);
+
do {
progress = false;
NIR_PASS_V(nir, nir_opt_constant_folding);