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_clear.c | |
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_clear.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_clear.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index a7d8228ee5a..e71d7f450bd 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -72,7 +72,8 @@ clear_color(struct iris_context *ice, box->z, box->depth, aux_usage); struct blorp_surf surf; - iris_blorp_surf_for_resource(&surf, p_res, aux_usage, level, true); + iris_blorp_surf_for_resource(&ice->vtbl, &surf, p_res, aux_usage, level, + true); if (!isl_format_supports_rendering(devinfo, format) && isl_format_is_rgbx(format)) @@ -129,13 +130,14 @@ clear_depth_stencil(struct iris_context *ice, if (z_res) { iris_resource_prepare_depth(ice, batch, z_res, level, box->z, box->depth); - iris_blorp_surf_for_resource(&z_surf, &z_res->base, + iris_blorp_surf_for_resource(&ice->vtbl, &z_surf, &z_res->base, z_res->aux.usage, level, true); } if (stencil_res) { - iris_blorp_surf_for_resource(&stencil_surf, &stencil_res->base, - stencil_res->aux.usage, level, true); + iris_blorp_surf_for_resource(&ice->vtbl, &stencil_surf, + &stencil_res->base, stencil_res->aux.usage, + level, true); } blorp_clear_depth_stencil(&blorp_batch, &z_surf, &stencil_surf, |