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

Lionel Landwerlin lionel.g.landwerlin at intel.com
Wed Dec 12 10:59:20 UTC 2018


Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 12/12/2018 03:35, Jason Ekstrand wrote:
> ping
>
> On Thu, Apr 5, 2018 at 12:50 PM Jason Ekstrand <jason at jlekstrand.net 
> <mailto: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
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181212/51e8f2b7/attachment.html>


More information about the mesa-dev mailing list