diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-06-14 20:12:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-06-14 20:17:06 +0300 |
commit | 0707177ab868f1845dba1ecfd396e58c091e89b0 (patch) | |
tree | a3ba924b06631c961eb2ec49f9e5c6ca3ac88ae8 /source/blender/draw/engines/eevee/eevee_materials.c | |
parent | 486755460ab23f555036537f1ac79037d5e7ef08 (diff) |
Fix T64913 Eevee: shader compilation does not reset TAA
This tracks the number of compiling shaders and just reset the TAA
if previous number mismatch.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_materials.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_materials.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c index 97b0f079500..5ac4545d223 100644 --- a/source/blender/draw/engines/eevee/eevee_materials.c +++ b/source/blender/draw/engines/eevee/eevee_materials.c @@ -1000,6 +1000,7 @@ void EEVEE_materials_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) break; case GPU_MAT_QUEUED: /* TODO Bypass probe compilation. */ + stl->g_data->queued_shaders_count++; col = compile_col; break; case GPU_MAT_FAILED: @@ -1352,6 +1353,7 @@ static void material_opaque(Material *ma, break; } case GPU_MAT_QUEUED: { + stl->g_data->queued_shaders_count++; color_p = compile_col; metal_p = spec_p = rough_p = ½ break; @@ -1458,6 +1460,7 @@ static void material_transparent(Material *ma, } case GPU_MAT_QUEUED: { /* TODO Bypass probe compilation. */ + stl->g_data->queued_shaders_count++; color_p = compile_col; metal_p = spec_p = rough_p = ½ break; @@ -1785,6 +1788,7 @@ void EEVEE_hair_cache_populate(EEVEE_Data *vedata, break; } case GPU_MAT_QUEUED: { + stl->g_data->queued_shaders_count++; color_p = compile_col; metal_p = spec_p = rough_p = ½ break; |