[Mesa-dev] [PATCH 0/5] Gallium/NV50/NVC0 support for ARB_texture_query_lod

Ilia Mirkin imirkin at alum.mit.edu
Thu Apr 3 19:14:07 PDT 2014


This is based on Dave's patches from his r600g-texture-gather branch. He also
has an r600 support patch, but I do not have access to that hardware. Tested
on NVA8 (GT218) and NVE6 (GK106) hardware.

Of note is that the instruction changed returned argument order starting with
nvc0. Perhaps it would make sense to switch the order of LODQ output? Although
it matches what ARB_texture_gather expects. Not a huge deal either way for
nouveau, the optimization passes should be able to take care of any silliness.

Dave Airlie (2):
  gallium: add support for LODQ opcodes.
  st/mesa: add support for ARB_texture_query_lod

Ilia Mirkin (3):
  nv50: enable texture query lod
  nvc0: enable texture query lod
  docs: mark ARB_texture_query_lod as done for nv50, nvc0

 docs/GL3.txt                                       |  2 +-
 src/gallium/auxiliary/tgsi/tgsi_info.c             |  1 +
 src/gallium/docs/source/screen.rst                 |  2 ++
 src/gallium/docs/source/tgsi.rst                   | 11 ++++++
 src/gallium/drivers/freedreno/freedreno_screen.c   |  1 +
 src/gallium/drivers/i915/i915_screen.c             |  1 +
 src/gallium/drivers/ilo/ilo_screen.c               |  1 +
 src/gallium/drivers/llvmpipe/lp_screen.c           |  1 +
 src/gallium/drivers/nouveau/codegen/nv50_ir.h      |  1 +
 .../drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 10 ++++++
 .../drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp  |  4 +++
 .../drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp  |  2 ++
 .../drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp  |  3 ++
 .../nouveau/codegen/nv50_ir_lowering_nv50.cpp      | 23 ++++++++++++
 .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp      | 41 ++++++++++++++++++++++
 .../drivers/nouveau/codegen/nv50_ir_print.cpp      |  1 +
 src/gallium/drivers/nouveau/nv30/nv30_screen.c     |  1 +
 src/gallium/drivers/nouveau/nv50/nv50_screen.c     |  2 ++
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c     |  2 ++
 src/gallium/drivers/r300/r300_screen.c             |  1 +
 src/gallium/drivers/r600/r600_pipe.c               |  1 +
 src/gallium/drivers/radeonsi/si_pipe.c             |  1 +
 src/gallium/drivers/softpipe/sp_screen.c           |  1 +
 src/gallium/drivers/svga/svga_screen.c             |  1 +
 src/gallium/include/pipe/p_defines.h               |  3 +-
 src/gallium/include/pipe/p_shader_tokens.h         |  4 ++-
 src/mesa/state_tracker/st_extensions.c             |  3 +-
 src/mesa/state_tracker/st_glsl_to_tgsi.cpp         |  3 +-
 28 files changed, 123 insertions(+), 5 deletions(-)

-- 
1.8.3.2



More information about the mesa-dev mailing list