[Mesa-dev] [PATCH 0/5] Gallium support for TXF and TXL with level = 0

Marek Olšák maraeo at gmail.com
Tue Mar 7 16:00:13 UTC 2017


On Tue, Mar 7, 2017 at 4:28 PM, Roland Scheidegger <sroland at vmware.com> wrote:
> I was thinking the same thing. It should be possible for backends to do
> this on their own.
> That said, for the d3d10 opcodes with shadow comparison we actually have
> SAMPLE_C_LZ already since d3d10 exposes that (unlike glsl), though we
> don't really make any use of it (gallivm just will put in a zero as the
> lod parameter in the end...).
> The TEX opcodes have a bit quirky encoding due to the "packed"
> arguments, so I guess you'd have to pass the target along.
> It sounds to me like this just introduces gallium opcodes to paper over
> a backend deficiency. Though since IIRC most (all recent?) hw actually
> supports such instructions directly, why not...
> (Another question would then be, does this really warrant a cap bit (the
> ever-increasing cap hell...), or should it just be mandatory.)

A cap bit is necessary due to time constraints on my end, but it can
go away if other drivers adopt it.

Marek


More information about the mesa-dev mailing list