Invalidating all state groups is not sufficient, as
some states check for actual changes.
The correct way is to invalidate the
commit mask.
Found with a wine test.
cc: mesa-stable
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18021>
{
struct nine_context *context = &device->context;
- context->changed.group = NINE_STATE_ALL;
+ context->changed.group = NINE_STATE_ALL; /* TODO: we can remove states that have prepared commits */
context->changed.vtxbuf = (1ULL << device->caps.MaxStreams) - 1;
context->changed.ucp = TRUE;
- context->commit |= NINE_STATE_COMMIT_CONST_VS | NINE_STATE_COMMIT_CONST_PS;
+ context->commit |= 0xffffffff; /* re-commit everything */
context->enabled_sampler_count_vs = 0;
context->enabled_sampler_count_ps = 0;
}