summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600/r600_context.h
diff options
context:
space:
mode:
authorRichard Li <RichardZ.Li@amd.com>2009-05-08 19:23:45 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-05-08 19:23:45 -0400
commite2dcebd2e6b2af6269a5ece6d6ced73ec8bb4a47 (patch)
treed8aa42c0ccdf36c283f548dec293d26ee4af601a /src/mesa/drivers/dri/r600/r600_context.h
parent604dd37f66d9c0e83cb3a9012ff1fc35f38b3e37 (diff)
R6xx/R7xx: WIP r6xx-rewrite code
Diffstat (limited to 'src/mesa/drivers/dri/r600/r600_context.h')
-rw-r--r--src/mesa/drivers/dri/r600/r600_context.h39
1 files changed, 17 insertions, 22 deletions
diff --git a/src/mesa/drivers/dri/r600/r600_context.h b/src/mesa/drivers/dri/r600/r600_context.h
index 74e34e3684..70108b74c4 100644
--- a/src/mesa/drivers/dri/r600/r600_context.h
+++ b/src/mesa/drivers/dri/r600/r600_context.h
@@ -140,26 +140,19 @@ struct r600_swtcl_info {
GLubyte vertex_attr_count;
};
-/* to be enabled */ /* DELETE FOLLOWING 2 SRTUCTS */
-struct r600_dma_buffer
+enum
{
- int refcount; /* the number of retained regions in buf */
- drmBufPtr buf;
- int id;
+ NO_SHIFT = 0,
+ LEFT_SHIFT = 1,
+ RIGHT_SHIFT = 2,
};
-struct r600_dma_region
+
+typedef struct offset_modifiers
{
- struct r600_dma_buffer *buf;
- char *address; /* == buf->address */
- int start;
- int end;
- int ptr; /* offsets from start of buf */
-
- int aos_offset; /* address in GART memory */
- int aos_stride; /* distance between elements, in dwords */
- int aos_size; /* number of components (1-4) */
-};
-/* ----------------------- */
+ GLuint shift;
+ GLuint shiftbits;
+ GLuint mask;
+} offset_modifiers;
typedef struct chip_object
{
@@ -175,14 +168,16 @@ typedef struct chip_object
GLuint (*GetTexObjSize)(void);
/* ------------ IN ------------------- */
- void (*EmitShader)( GLcontext * ctx,
- struct r600_dma_region *rvb,
+ GLboolean (*EmitShader)( GLcontext * ctx,
+ void ** shaderbo,
GLvoid * data,
int sizeinDWORD);
+ GLboolean (*DeleteShader)(GLcontext * ctx,
+ void * shaderbo);
void (*FreeDmaRegion)( GLcontext * ctx,
- struct r600_dma_region *region);
- void (*EmitVec)(GLcontext * ctx,
- struct r600_dma_region *rvb,
+ void * shaderbo);
+ GLboolean (*EmitVec)(GLcontext * ctx,
+ struct radeon_aos *aos,
GLvoid * data,
int size,
int stride,