OSDN Git Service

st/mesa: pass correct pipe_texture_target to st_choose_format()
authorBrian Paul <brianp@vmware.com>
Mon, 18 Nov 2013 22:51:43 +0000 (14:51 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 18 Nov 2013 23:34:02 +0000 (16:34 -0700)
commit7eab897d4d05392bbf336b2062a6ebe378d6ff7a
tree66679a2f9c533df641c67f585573234cc46eecde
parent1b9511d7ce70a9f9cadd0c03bd0c916b88b6dd43
st/mesa: pass correct pipe_texture_target to st_choose_format()

We were always passing PIPE_TEXTURE_2D, but not all formats are
supported for all types of textures.  In particular, the driver may
not supported texture compression for all types of textures.

Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/mesa/state_tracker/st_format.c