aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-02-14 03:19:01 +0100
committerMarek Olšák <[email protected]>2010-03-07 15:39:37 +0100
commit6c7fac846ef99cde5305cf1011b4570bd1901625 (patch)
treee30f2e5eba880f7a84b21a7cd407dfa30af0494c /src/gallium/drivers/r300/r300_screen.h
parent4012219f1f215cec9406be644b6b9d421bb5d8e4 (diff)
r300g: add ability to tile/detile textures using blit during transfers
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.h')
-rw-r--r--src/gallium/drivers/r300/r300_screen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.h b/src/gallium/drivers/r300/r300_screen.h
index 6d72fec7788..484bde6a6be 100644
--- a/src/gallium/drivers/r300/r300_screen.h
+++ b/src/gallium/drivers/r300/r300_screen.h
@@ -28,6 +28,8 @@
#include "r300_chipset.h"
+#define R300_TEXTURE_USAGE_TRANSFER PIPE_TEXTURE_USAGE_CUSTOM
+
struct radeon_winsys;
struct r300_screen {
@@ -36,6 +38,10 @@ struct r300_screen {
struct radeon_winsys* radeon_winsys;
+ /* XXX This hack will be removed once texture transfers become part of
+ * pipe_context. */
+ struct pipe_context* ctx;
+
/* Chipset capabilities */
struct r300_capabilities* caps;