intel/blorp: Use mocs.tex for depth stencil
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Nov 2017 21:31:51 +0000 (14:31 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Nov 2017 03:39:57 +0000 (19:39 -0800)
Cc: "17.3" <mesa-stable@lists.freedesktop.org>
Tested-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/blorp/blorp_genX_exec.h

index 53892620986c3953f52d03b42092e86b08c8d8f4..ccbfe5199f78ed045655e11b1824c56a2aacf157 100644 (file)
@@ -1364,11 +1364,7 @@ blorp_emit_depth_stencil_config(struct blorp_batch *batch,
       return;
 
    struct isl_depth_stencil_hiz_emit_info info = {
-#if GEN_GEN >= 7
-      .mocs = 1, /* GEN7_MOCS_L3 */
-#else
-      .mocs = 0,
-#endif
+      .mocs = batch->blorp->mocs.tex,
    };
 
    if (params->depth.enabled) {