diff options
author | Roland Scheidegger <[email protected]> | 2015-03-28 20:51:23 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2015-03-31 17:23:51 +0200 |
commit | 1863ed21ffbb3ab7fd9875dc25e32ececea79d50 (patch) | |
tree | a121276df53929126c0a7065fb068710b87a168d /src/glsl/lower_vertex_id.cpp | |
parent | 0fc5b80e7abae061dd5b0a17a0e775619a5245be (diff) |
gallivm: simplify sampler interface
This has got a bit out of control with more and more parameters added.
Worse, whenever something in there changes all callees have to be updated
for that, even though they don't really do much with any parameter in there
except pass it on to the actual sampling function.
Hence simply put almost everything into a struct. Also instead of relying
on some arguments being NULL, be explicit and set this in a key (which is
just reused for function generation for simplicity). (The code still relies
on them being NULL in the end for now.)
Technically there is a minimal functional change here for shadow sampling:
if shadow sampling is done is now determined explicitly by the texture
function (either sample_c or the gl-style tex func inherit this from target)
instead of the static texture state. These two should always match, however.
Otherwise, it should generate all the same code.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/glsl/lower_vertex_id.cpp')
0 files changed, 0 insertions, 0 deletions