diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-10-17 13:11:01 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-10-17 16:25:39 -0700 |
commit | a663e846b63c33685a9e88c8904f5e3a225f6e85 (patch) | |
tree | 65a3ca9845e0ac60fc662148d88585311d87c7e8 /src/mesa/drivers/dri/r300/r300_reg.h | |
parent | 42a4386a4c18932221c59607e6d22b864a2577fb (diff) |
Framework for supporting z24_s8 and z32 depth textures on r300.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_reg.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_reg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_reg.h b/src/mesa/drivers/dri/r300/r300_reg.h index 1baa74c526..ee556d347e 100644 --- a/src/mesa/drivers/dri/r300/r300_reg.h +++ b/src/mesa/drivers/dri/r300/r300_reg.h @@ -886,6 +886,14 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. # define R300_TX_FORMAT_A8R8G8B8 0x13 /* no swizzle */ # define R300_TX_FORMAT_B8G8_B8G8 0x14 /* no swizzle */ # define R300_TX_FORMAT_G8R8_G8B8 0x15 /* no swizzle */ + + /* These two values are wrong, but they're the only values that + * produce any even vaguely correct results. Can r300 only do 16-bit + * depth textures? + */ +# define R300_TX_FORMAT_X24_Y8 0x1e +# define R300_TX_FORMAT_X32 0x1e + /* 0x16 - some 16 bit green format.. ?? */ # define R300_TX_FORMAT_UNK25 (1 << 25) /* no swizzle */ # define R300_TX_FORMAT_CUBIC_MAP (1 << 26) |