iris: flag DIRTY_WM properly
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Jun 2018 19:20:54 +0000 (12:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_program_cache.c

index 3a50e33feadcca2a98d83d8c043941695ef0c1ae..7a004fc855b51fd067b5780fb908ca1ecebf47d7 100644 (file)
@@ -97,6 +97,11 @@ static uint64_t
 dirty_flag_for_cache(enum iris_program_cache_id cache_id)
 {
    assert(cache_id <= MESA_SHADER_STAGES);
+
+   // XXX: ugly
+   if (cache_id == IRIS_CACHE_FS)
+      return IRIS_DIRTY_WM | IRIS_DIRTY_FS;
+
    return IRIS_DIRTY_VS << cache_id;
 }