i965: Test original vertex array pointer to skip array upload.
authorMathias Fröhlich <mathias.froehlich@web.de>
Sat, 20 Apr 2019 05:39:56 +0000 (07:39 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 14:28:37 +0000 (14:28 +0000)
commitde579ffba2e4968cf9aca046369c3cbb6684a1e2
tree693bd69343dbc823b5df29d6e3720001d364ba69
parentb684030c3a656ffdbc93581856034e0982db46fd
i965: Test original vertex array pointer to skip array upload.

Rather than do a NULL pointer check on a pointer that may be offset by the
min-max index range of an GL draw operation, execute the NULL test on the
original vertex array pointer.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/308>
src/mesa/drivers/dri/i965/brw_draw_upload.c