[Mesa-dev] [PATCH v2] mesa/pbo: Handle zero width, height or depth when validating access

Jason Ekstrand jason at jlekstrand.net
Thu Sep 3 06:22:54 PDT 2015


On Sep 3, 2015 4:09 AM, "Neil Roberts" <neil at linux.intel.com> wrote:
>
> Jason Ekstrand <jason at jlekstrand.net> writes:
>
> > We can probably just bail higher up in the stack and never call the
> > driver hook if we have a zero dimension. That would also protect us
> > from silly zero-dim bugs that may exist.
>
> Yes, that already does happen. As mentioned elsewhere in the thread,
> _mesa_validate_pbo_access is called outside of the driver code before it
> tries to bail out.
>
> I think we do still want to call _mesa_validate_pbo_access for
> zero-sized images because it generates other errors that we're probably
> supposed to catch so we can't just move the shortcut further up the
> stack.

Sounds good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150903/6fcaee8e/attachment.html>


More information about the mesa-dev mailing list