summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2020-02-05 00:52:45 -0800
committerKenneth Graunke <kenneth@whitecape.org>2020-02-21 16:44:53 -0800
commit4bac2fa3c6d30537e444c555f182abd9c739cfd4 (patch)
treeff56288a616628d0d13d724b4f65751827154e9e
parent1cdf5abdfaeba5a89574d7cc374e5667be2e2f93 (diff)
downloadmesa-4bac2fa3c6d30537e444c555f182abd9c739cfd4.tar.gz
iris: Fix BLORP vertex buffers to respect ISL MOCS settings
Fixes: a4da6008b6a ("iris: Use mocs from isl_dev.") Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3720>
-rw-r--r--src/gallium/drivers/iris/iris_blorp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/drivers/iris/iris_blorp.c b/src/gallium/drivers/iris/iris_blorp.c
index e3584e22549..ec08c25019d 100644
--- a/src/gallium/drivers/iris/iris_blorp.c
+++ b/src/gallium/drivers/iris/iris_blorp.c
@@ -46,12 +46,6 @@
#define BLORP_USE_SOFTPIN
#include "blorp/blorp_genX_exec.h"
-#if GEN_GEN == 8
-#define MOCS_WB 0x78
-#else
-#define MOCS_WB (2 << 1)
-#endif
-
static uint32_t *
stream_state(struct iris_batch *batch,
struct u_upload_mgr *uploader,
@@ -189,7 +183,7 @@ blorp_alloc_vertex_buffer(struct blorp_batch *blorp_batch,
*addr = (struct blorp_address) {
.buffer = bo,
.offset = offset,
- .mocs = MOCS_WB,
+ .mocs = iris_mocs(bo, &batch->screen->isl_dev),
};
return map;