mesa: move _mesa_update_pixel out of _mesa_update_state
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Feb 2021 17:56:52 +0000 (12:56 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Feb 2021 23:38:02 +0000 (23:38 +0000)
commit10c75ae41c4e914a0160f9d93bbe1e65b5e14517
tree60d875cdcbfc9618f3918c1fb51b3331eee6708f
parent93c74193fccec4b9997b24a8dbd8042f42456840
mesa: move _mesa_update_pixel out of _mesa_update_state

This only has to be called in a few places and not in normal draw calls.

egl_image_target_texture doesn't call  _mesa_update_pixel because it only
assigns an EGL image to a texture object.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8850>
src/mesa/main/drawpix.c
src/mesa/main/readpix.c
src/mesa/main/state.c
src/mesa/main/teximage.c