mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
gallium: remove redundant compare bit in sampler state
This commit is contained in:
parent
4e7bcaa4c2
commit
5615ab78b0
3 changed files with 1 additions and 4 deletions
|
|
@ -161,8 +161,7 @@ static void brw_wm_populate_key( struct brw_context *brw,
|
|||
|
||||
if (unit) {
|
||||
|
||||
if (unit->compare &&
|
||||
unit->compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE) {
|
||||
if (unit->compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE) {
|
||||
key->shadowtex_mask |= 1<<i;
|
||||
}
|
||||
if (t->Image[0][t->BaseLevel]->InternalFormat == GL_YCBCR_MESA)
|
||||
|
|
|
|||
|
|
@ -243,7 +243,6 @@ struct pipe_sampler_state
|
|||
unsigned min_img_filter:2; /**< PIPE_TEX_FILTER_x */
|
||||
unsigned min_mip_filter:2; /**< PIPE_TEX_MIPFILTER_x */
|
||||
unsigned mag_img_filter:2; /**< PIPE_TEX_FILTER_x */
|
||||
unsigned compare:1; /**< shadow/depth compare enabled? */
|
||||
unsigned compare_mode:1; /**< PIPE_TEX_COMPARE_x */
|
||||
unsigned compare_func:3; /**< PIPE_FUNC_x */
|
||||
unsigned normalized_coords:1; /**< Are coords normalized to [0,1]? */
|
||||
|
|
|
|||
|
|
@ -167,7 +167,6 @@ update_samplers(struct st_context *st)
|
|||
|
||||
/* 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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue