st/mesa: use correct TGSI texture target in bitmap fragment shader
authorBrian Paul <brianp@vmware.com>
Fri, 18 Mar 2016 18:16:50 +0000 (12:16 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Mar 2016 17:59:25 +0000 (11:59 -0600)
commit83b5b3d66ecb502e69c0f8a09b1673e94dcac1bc
tree680eb486495ded1e2fcfc7e5b1d0b85089c2454c
parent63e020d734faa224dae576e2883ef39d8827fcad
st/mesa: use correct TGSI texture target in bitmap fragment shader

Depending on the driver's support for NPOT textures, we might use
a RECT texture instead of 2D texture.  We should propogate that info
to the fragment shader's TEX instruction.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_cb_bitmap.h
src/mesa/state_tracker/st_cb_bitmap_shader.c
src/mesa/state_tracker/st_program.c