[Mesa-dev] [PATCH 2/4] i965: Reset miptree aux state on update_image_buffer

Chad Versace chadversary at chromium.org
Mon Sep 18 16:05:58 UTC 2017


On Tue 12 Sep 2017, Jason Ekstrand wrote:
> When we get a miptree in through glxBindImageEXT, we don't know the
> current aux state so we have to assume the worst-case.  If the image
> gets recreated, everything is fine because miptreecreate_for_dri_image
> sets it to the default.  However, if our miptree is recycled, then we
> may have stale aux_usage and we need to reset to the default otherwise
> our aux_state tracking will get messed up.
> ---
>  src/mesa/drivers/dri/i965/brw_context.c       |  4 +++-
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 19 +++++++++++++++++++
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.h |  3 +++
>  3 files changed, 25 insertions(+), 1 deletion(-)

Reviewed-by: Chad Versace <chadversary at chromium.org>


More information about the mesa-dev mailing list