[Mesa-dev] [PATCH] intel/blorp: Assert that we don't re-layout a compressed surface

Jason Ekstrand jason at jlekstrand.net
Wed Dec 12 03:35:41 UTC 2018


ping

On Thu, Apr 5, 2018 at 12:50 PM Jason Ekstrand <jason at jlekstrand.net> wrote:

> ---
>  src/intel/blorp/blorp_blit.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
> index 0757db0..0f9ecb3 100644
> --- a/src/intel/blorp/blorp_blit.c
> +++ b/src/intel/blorp/blorp_blit.c
> @@ -1395,6 +1395,9 @@ blorp_surf_convert_to_single_slice(const struct
> isl_device *isl_dev,
>  {
>     bool ok UNUSED;
>
> +   /* It would be insane to try and do this on a compressed surface */
> +   assert(info->aux_usage == ISL_AUX_USAGE_NONE);
> +
>     /* Just bail if we have nothing to do. */
>     if (info->surf.dim == ISL_SURF_DIM_2D &&
>         info->view.base_level == 0 && info->view.base_array_layer == 0 &&
> --
> 2.5.0.400.gff86faf
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181211/e69b8662/attachment.html>


More information about the mesa-dev mailing list