[Mesa-dev] [PATCH 0/6] nir texture lowering

Rob Clark robdclark at gmail.com
Fri Sep 18 07:55:03 PDT 2015


From: Rob Clark <robclark at freedesktop.org>

Few cleanups in RECT and clamp lowering, in particular clamping for
RECT textures happens in the texture's native dimensions rather than
forcing RECT->2D lowering.

Rob Clark (6):
  nir: rename nir_lower_tex_projector
  nir/lower_tex: split out project_src() helper
  nir/lower_tex: support projector lowering per sampler type
  nir/lower_tex: support for lowering RECT textures
  nir/lower_tex: add support to clamp texture coords
  freedreno/ir3: lower txp/clamp in NIR

 .../drivers/freedreno/ir3/ir3_compiler_nir.c       |  56 ++--
 src/glsl/Makefile.sources                          |   2 +-
 src/glsl/nir/nir.h                                 |  38 ++-
 src/glsl/nir/nir_lower_tex.c                       | 295 +++++++++++++++++++++
 src/glsl/nir/nir_lower_tex_projector.c             | 137 ----------
 src/mesa/drivers/dri/i965/brw_nir.c                |   5 +-
 6 files changed, 367 insertions(+), 166 deletions(-)
 create mode 100644 src/glsl/nir/nir_lower_tex.c
 delete mode 100644 src/glsl/nir/nir_lower_tex_projector.c

-- 
2.4.3



More information about the mesa-dev mailing list