meta: Remove error checks for texture <-> pixel-buffer transfers that don't belong...
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 10 Mar 2015 18:33:30 +0000 (19:33 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Fri, 13 Mar 2015 15:40:20 +0000 (16:40 +0100)
commitf6f7bfb5e1308593df9642aa8f46a17e8ce340a2
tree9a140943b297a02851281e9ab65202ab098d1215
parent558dcd877095a27ce5de8198744f2f95ddf66b2a
meta: Remove error checks for texture <-> pixel-buffer transfers that don't belong in driver code

The implementation of texture <-> pixel-buffer transfers in drivers common layer
includes certain error checks and argument validation that don't belong there,
considering how the Mesa codebase is laid out. These are higher level
validations that, if necessary, should be performed earlier (i.e, in GL API
entry points).

This patch simply removes these error checks from driver code.

For more information, see discussion at
http://lists.freedesktop.org/archives/mesa-dev/2015-February/077417.html.

Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
src/mesa/drivers/common/meta_tex_subimage.c