diff options
author | Kenneth Graunke <[email protected]> | 2019-03-06 14:49:39 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-03-06 18:04:53 -0800 |
commit | 744b8e1c12f2f3857070a895bf6a4351f071a3f9 (patch) | |
tree | 7522439bb611699f3d44ec10e94631284b06a9a5 /src/gallium/drivers/iris/iris_context.h | |
parent | ecceb076e5c99cea94b853a9600947fe78b3ca74 (diff) |
iris: Fix MOCS for blits and clears
I915_MOCS_CACHED is the wrong value. Expose mocs() and use that.
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 87439718a94..771c47ffced 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -410,6 +410,7 @@ struct iris_vtable { struct brw_wm_prog_key *key); void (*populate_cs_key)(const struct iris_context *ice, struct brw_cs_prog_key *key); + uint32_t (*mocs)(const struct iris_bo *bo); }; /** @@ -659,7 +660,8 @@ void iris_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data, /* iris_blit.c */ -void iris_blorp_surf_for_resource(struct blorp_surf *surf, +void iris_blorp_surf_for_resource(struct iris_vtable *vtbl, + struct blorp_surf *surf, struct pipe_resource *p_res, enum isl_aux_usage aux_usage, unsigned level, |