mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
crocus/gen5: reemit shaders on gen5 after new program cache bo.
This fixes gtk4 programs.
Fixes: f3630548f1 ("crocus: initial gallium driver for Intel gfx 4-7")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13281>
This commit is contained in:
parent
86a33569f4
commit
7079286945
1 changed files with 2 additions and 1 deletions
|
|
@ -155,10 +155,11 @@ crocus_cache_new_bo(struct crocus_context *ice,
|
|||
ice->shaders.cache_bo = new_bo;
|
||||
ice->shaders.cache_bo_map = map;
|
||||
|
||||
if (screen->devinfo.ver == 4) {
|
||||
if (screen->devinfo.ver <= 5) {
|
||||
/* reemit all shaders on GEN4 only. */
|
||||
ice->state.dirty |= CROCUS_DIRTY_CLIP | CROCUS_DIRTY_RASTER |
|
||||
CROCUS_DIRTY_WM;
|
||||
ice->state.stage_dirty |= CROCUS_STAGE_DIRTY_VS;
|
||||
}
|
||||
ice->batches[CROCUS_BATCH_RENDER].state_base_address_emitted = false;
|
||||
ice->batches[CROCUS_BATCH_COMPUTE].state_base_address_emitted = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue