st/mesa: fix pbo uploads
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 18 Feb 2016 06:04:13 +0000 (01:04 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 19 Feb 2016 16:30:33 +0000 (11:30 -0500)
commit2b938a390c15a06be8cf706083890c822979508f
tree08ca8d3537c81135fc0f0e5e458de98b1a487b5d
parent68c4af1c1942d30665f3f99654e8f35b175d1256
st/mesa: fix pbo uploads

 - LOD must be provided in .w for TXF (even for buffer textures)
 - User buffer must be valid at draw time
 - Must have a sampler associated with the sampler view

This makes PBO uploads work again on nouveau.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_texture.c