mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
gallivm: added field for sampler lod
This commit is contained in:
parent
8c8e664f10
commit
36a0c4219d
2 changed files with 6 additions and 4 deletions
|
|
@ -75,14 +75,15 @@ lp_sampler_static_state(struct lp_sampler_static_state *state,
|
|||
state->min_mip_filter = sampler->min_mip_filter;
|
||||
state->mag_img_filter = sampler->mag_img_filter;
|
||||
state->compare_mode = sampler->compare_mode;
|
||||
state->compare_func = sampler->compare_func;
|
||||
state->normalized_coords = sampler->normalized_coords;
|
||||
state->lod_bias = sampler->lod_bias;
|
||||
state->min_lod = sampler->min_lod;
|
||||
state->max_lod = sampler->max_lod;
|
||||
state->border_color[0] = sampler->border_color[0];
|
||||
state->border_color[1] = sampler->border_color[1];
|
||||
state->border_color[2] = sampler->border_color[2];
|
||||
state->border_color[3] = sampler->border_color[3];
|
||||
if(sampler->compare_mode != PIPE_TEX_COMPARE_NONE) {
|
||||
state->compare_func = sampler->compare_func;
|
||||
}
|
||||
state->normalized_coords = sampler->normalized_coords;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ struct lp_sampler_static_state
|
|||
unsigned compare_mode:1;
|
||||
unsigned compare_func:3;
|
||||
unsigned normalized_coords:1;
|
||||
float lod_bias, min_lod, max_lod;
|
||||
float border_color[4];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue