diff options
author | Marek Olšák <[email protected]> | 2009-10-25 05:05:27 +0100 |
---|---|---|
committer | Joakim Sindholt <[email protected]> | 2009-10-25 08:06:19 +0100 |
commit | 118dfe16887d1ec4d3b96d49b76fffa0d2924132 (patch) | |
tree | 51b60cf0c95c8b6a67e2b538791daf35e9a68091 /src/gallium/drivers/r300/r300_texture.h | |
parent | 94a63dccdd79268cf37587c93e3dec0d02dad457 (diff) |
r300g: added support for 3D textures
Mipmaps not tested. Also, I am not sure why piglit/texturing/tex3d needs
to have color tolerance +-1 to pass. The classic Mesa driver doesn't
need that.
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h index 55d1a0ac5cf..35e06a9acb5 100644 --- a/src/gallium/drivers/r300/r300_texture.h +++ b/src/gallium/drivers/r300/r300_texture.h @@ -33,6 +33,9 @@ void r300_init_screen_texture_functions(struct pipe_screen* screen); unsigned r300_texture_get_stride(struct r300_texture* tex, unsigned level); +unsigned r300_texture_get_offset(struct r300_texture* tex, unsigned level, + unsigned zslice, unsigned face); + /* Note the signature of R300_EASY_TX_FORMAT(A, R, G, B, FORMAT)... */ static INLINE uint32_t r300_translate_texformat(enum pipe_format format) { |