iris: Blit non-stencil according to aspect_mask
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 4 Jan 2021 18:27:11 +0000 (10:27 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 7 Jan 2021 23:00:32 +0000 (23:00 +0000)
commitdb2cdc4277bb43cab828a2b46ccfb5cf9442d02b
tree865d9b200beea4ccac99c59284bfeda6bdefee4d
parentb73e903f961714e3abc42d486069591a2b76ef79
iris: Blit non-stencil according to aspect_mask

When blitting just the stencil aspect, the source and destination
resources are prepared/setup twice. Move the unconditional resource
setup into the aspect_mask loop to avoid this.

In addition, use the aspect provided by the loop instead of the mask
provided by the info parameter.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8340>
src/gallium/drivers/iris/iris_blit.c