OSDN Git Service

st/mesa: treat 1D ARRAY upload like a depth or 2D array upload.
authorDave Airlie <airlied@redhat.com>
Fri, 18 Feb 2011 04:51:58 +0000 (14:51 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Feb 2011 03:26:16 +0000 (13:26 +1000)
commit13f5a4d3169be75136ee5255474df803a8f4e070
treeeace43e7ef0135184b1df116c1f8e6e3cda2afd7
parent100cd214e37265776639c56018270805829ea952
st/mesa: treat 1D ARRAY upload like a depth or 2D array upload.

This is because the HW doesn't always store a 1D array like a
2D texture, it more likely stores it like 2D texture (i.e.
alignments etc).

This means we upload each slice separately and let the driver
work out where to put it.

this might break nvc0 as I can't test it, I have only nv50 here.

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