diff options
author | Roland Scheidegger <[email protected]> | 2013-05-17 23:13:51 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-05-18 00:31:49 +0200 |
commit | d7e811c0b0f51df85a624a5784518e274a1db173 (patch) | |
tree | 532c8950c62d22d970078ca2db5faab838a3e743 /src/gallium/drivers | |
parent | 0346e9b3bb24cf79c182a86fd8445251dfaa64ca (diff) |
gallivm: handle z32s8x24 format for sampling
Since we can only sample either depth or stencil but not both only load
the required bits which makes things a bit easier (it requires special
handling since the format doesn't fit into 32bit).
The logic for deciding if depth or stencil should be sampled is a bit odd,
but seems to be what other drivers and statetrackers do: if it's a format with
both depth and stencil (or just with depth) then sample depth, for sampling
stencil a sampler view format with only stencil is required.
Also while here fix up stencil sampling for other formats as well, though
this isn't supported by mesa (ARB_stencil_texturing), and while blits would
use it they don't work neither since they'd also need stencil export.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions