diff options
author | Jason Ekstrand <[email protected]> | 2017-11-03 15:20:08 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-11-13 19:40:10 -0800 |
commit | bc933d0e8462871e19328f66182c35543e334013 (patch) | |
tree | 1d4bc129dc020daa81e97a8fb5fa7b0c33086f35 /src/mesa/drivers/dri/i965/genX_blorp_exec.c | |
parent | deec84fd771876b5c0755293376df11bc95b473b (diff) |
intel/blorp: Make the MOCS setting part of blorp_address
This makes our MOCS settings significantly more flexible.
Cc: "17.3" <[email protected]>
Tested-by: Lyude Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/genX_blorp_exec.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_blorp_exec.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index 3c7a7b47dbd..3bf6fd61567 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -152,6 +152,16 @@ blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size, *addr = (struct blorp_address) { .buffer = brw->batch.state_bo, .offset = offset, + +#if GEN_GEN == 10 + .mocs = CNL_MOCS_WB, +#elif GEN_GEN == 9 + .mocs = SKL_MOCS_WB, +#elif GEN_GEN == 8 + .mocs = BDW_MOCS_WB, +#elif GEN_GEN == 7 + .mocs = GEN7_MOCS_L3, +#endif }; return data; |