mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
nv50: fix depth comparison func TSC bits
Unfortunately it seems that if depth comparison is active and we read a 2D texture, i.e. provide only 2 inputs, the second is used for comparison ...
This commit is contained in:
parent
6a689783b9
commit
cc0ffaba7d
1 changed files with 3 additions and 2 deletions
|
|
@ -196,8 +196,9 @@ nv50_sampler_state_create(struct pipe_context *pipe,
|
|||
}
|
||||
|
||||
if (cso->compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE) {
|
||||
tsc[0] |= (1 << 8);
|
||||
tsc[0] |= (nvgl_comparison_op(cso->compare_func) & 0x7);
|
||||
/* XXX: must be deactivated for non-shadow textures */
|
||||
tsc[0] |= (1 << 9);
|
||||
tsc[0] |= (nvgl_comparison_op(cso->compare_func) & 0x7) << 10;
|
||||
}
|
||||
|
||||
limit = CLAMP(cso->lod_bias, -16.0, 15.0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue