st/mesa: fix GLSL uniform updates for glBitmap & glDrawPixels (v2)
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Dec 2015 12:36:57 +0000 (13:36 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 2 Jan 2016 14:15:44 +0000 (15:15 +0100)
commit36c93a6fae275614b6004ec5ab085774d527e1bc
tree8f1347ab99892d008df883eea8e045920d3306bf
parent294ed5cd13e878ec43126a2070343d6d99ef5669
st/mesa: fix GLSL uniform updates for glBitmap & glDrawPixels (v2)

Spotted by luck. The GLSL uniform storage is only associated once
in LinkShader and can't be reallocated afterwards, because that would
break the association.

v2: don't remove st_upload_constants calls, clarify why they're needed

Cc: 11.0 11.1 <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h