mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
iris: fix sample mask
0xffffffff does not mean 1, it means enable as many as there actually are. we don't get set_sample_mask() calls until some masking is actually applied...i.e. it doesn't get updated based on # of samples in the FBO changing.
This commit is contained in:
parent
e990558152
commit
80c7096672
1 changed files with 2 additions and 1 deletions
|
|
@ -1208,7 +1208,7 @@ iris_set_sample_mask(struct pipe_context *ctx, unsigned sample_mask)
|
|||
{
|
||||
struct iris_context *ice = (struct iris_context *) ctx;
|
||||
|
||||
ice->state.sample_mask = sample_mask == 0xffffffff ? 1 : sample_mask;
|
||||
ice->state.sample_mask = sample_mask & 0xffff;
|
||||
ice->state.dirty |= IRIS_DIRTY_SAMPLE_MASK;
|
||||
}
|
||||
|
||||
|
|
@ -3882,6 +3882,7 @@ genX(init_state)(struct iris_context *ice)
|
|||
|
||||
ice->state.dirty = ~0ull;
|
||||
|
||||
ice->state.sample_mask = 0xffff;
|
||||
ice->state.num_viewports = 1;
|
||||
ice->state.genx = calloc(1, sizeof(struct iris_genx_state));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue