intel/blorp: Make the MOCS setting part of blorp_address

This makes our MOCS settings significantly more flexible.

Cc: "17.3" <mesa-stable@lists.freedesktop.org>
Tested-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand
2017-11-03 15:20:08 -07:00
parent deec84fd77
commit bc933d0e84
6 changed files with 44 additions and 33 deletions

View File

@@ -45,12 +45,6 @@ struct blorp_context {
const struct brw_compiler *compiler;
struct {
uint32_t tex;
uint32_t rb;
uint32_t vb;
} mocs;
bool (*lookup_shader)(struct blorp_context *blorp,
const void *key, uint32_t key_size,
uint32_t *kernel_out, void *prog_data_out);
@@ -94,6 +88,7 @@ struct blorp_address {
void *buffer;
unsigned reloc_flags;
uint32_t offset;
uint32_t mocs;
};
struct blorp_surf