mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
set sampler state for shadow test
This commit is contained in:
parent
b18763141d
commit
a736670219
1 changed files with 8 additions and 0 deletions
|
|
@ -153,6 +153,14 @@ update_samplers(struct st_context *st)
|
|||
|
||||
sampler.max_anisotropy = texobj->MaxAnisotropy;
|
||||
|
||||
/* only care about ARB_shadow, not SGI shadow */
|
||||
if (texobj->CompareMode == GL_COMPARE_R_TO_TEXTURE) {
|
||||
sampler.compare = 1;
|
||||
sampler.compare_mode = PIPE_TEX_COMPARE_R_TO_TEXTURE;
|
||||
sampler.compare_func
|
||||
= st_compare_func_to_pipe(texobj->CompareFunc);
|
||||
}
|
||||
|
||||
/* XXX more sampler state here */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue