OSDN Git Service

st/mesa: fix levels in initial texture creation
authorDave Airlie <airlied@redhat.com>
Sun, 7 Apr 2013 04:29:59 +0000 (14:29 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 8 Apr 2013 22:56:06 +0000 (23:56 +0100)
commitd0bf48f8e99ccb4a6ab2b963e6a88e104e7ae5d8
treecc98529c0963bb1a1e19e2269c6fd21cbf994ba0
parent58d93e324718a5a54f7e12b83d58ff5535be1c9c
st/mesa: fix levels in initial texture creation

calim pointed out we were getting mipmap levels for array multisamples,
this didn't make sense. So then I noticed this function takes last_level
so we are passing in a too high value here.

I think this should fix the case he was seeing.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_texture.c