From: Kenneth Graunke Date: Tue, 3 Jul 2018 06:16:20 +0000 (-0700) Subject: iris: SBE change stash X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f39f4843f071d0032192b94163a595df589e83f;p=mesa.git iris: SBE change stash not used yet, but want to flag it so I don't forget --- diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 2b4dcc89b2d..6f3112ab4af 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -55,7 +55,7 @@ struct blorp_params; #define IRIS_DIRTY_BLEND_STATE (1ull << 7) #define IRIS_DIRTY_RASTER (1ull << 8) #define IRIS_DIRTY_CLIP (1ull << 9) -// XXX: define IRIS_DIRTY_ (1ull << 10) +#define IRIS_DIRTY_SBE (1ull << 10) #define IRIS_DIRTY_LINE_STIPPLE (1ull << 11) #define IRIS_DIRTY_VERTEX_ELEMENTS (1ull << 12) #define IRIS_DIRTY_MULTISAMPLE (1ull << 13) diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index f2e47a6baa4..d966dcd6d0a 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -517,6 +517,10 @@ update_last_vue_map(struct iris_context *ice) // XXX: CC_VIEWPORT? } + if (changed_slots || (old_map && old_map->separate != vue_map->separate)) { + ice->state.dirty |= IRIS_DIRTY_SBE; + } + ice->shaders.last_vue_map = &vue_prog_data->vue_map; }