mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
iris: Start using blorp_can_hiz_clear_depth()
Check that the alignment requirements for HIZ_CCS are satisfied by using this function. Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
5425fcf2cb
commit
fee4dbcb4d
1 changed files with 7 additions and 1 deletions
|
|
@ -407,6 +407,9 @@ can_fast_clear_depth(struct iris_context *ice,
|
|||
float depth)
|
||||
{
|
||||
struct pipe_resource *p_res = (void *) res;
|
||||
struct pipe_context *ctx = (void *) ice;
|
||||
struct iris_screen *screen = (void *) ctx->screen;
|
||||
const struct gen_device_info *devinfo = &screen->devinfo;
|
||||
|
||||
if (INTEL_DEBUG & DEBUG_NO_FAST_CLEAR)
|
||||
return false;
|
||||
|
|
@ -421,7 +424,10 @@ can_fast_clear_depth(struct iris_context *ice,
|
|||
if (!(res->aux.has_hiz & (1 << level)))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return blorp_can_hiz_clear_depth(devinfo, &res->surf, res->aux.usage,
|
||||
level, box->z, box->x, box->y,
|
||||
box->x + box->width,
|
||||
box->y + box->height);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue