[Mesa-dev] [PATCH 00/11] ARB_gpu_shader5 d/u sampler array indexing

Chris Forbes chrisf at ijw.co.nz
Sat Aug 9 19:14:34 PDT 2014


The last big piece of ARB_gpu_shader5!

This series adds support for using dynamically uniform expressions
in sampler array indexing, as required by ARB_gpu_shader5. Gen7 is
supported (including Haswell's "high samplers"). Gen8 support would
be a straightforward addition for someone who has access to the
hardware.

Caveats:

- Haswell sampler state pointer adjustment is not optimal. If we knew
  the possible range of samplers an instruction could reference in the
  generator, we could take the constant fixup path if the sampler array
  did not span a 16-sampler boundary.

- The various shader-based workaround flags are taken from array index 0,
  in the non-const case. This causes wrong behavior if the flags differ
  between array elements. [Ken and I discussed this during planning,
  and this seemed a reasonable initial implementation.]



More information about the mesa-dev mailing list