diff options
author | Aapo Tahkola <[email protected]> | 2005-02-28 00:27:02 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-02-28 00:27:02 +0000 |
commit | d1e40c9bddc3516da0facf0d2f3f7db4533a1396 (patch) | |
tree | e882aff729d1e21e47f31a5298341e334de1a3e5 /src/mesa/drivers/dri/r300/r300_context.h | |
parent | 6c0c91714c17da75d0386a48f7de7b558b3ec1a9 (diff) |
fix for 'nasty bug' and some sanity checks to avoid buffer overruns. Bumping VSF_MAX_FRAGMENT_LENGTH as it seems a bit low otherwise.before_upgrade_03_01_05
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index d3dbccc8ed6..7879de1b88c 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -122,16 +122,11 @@ struct r300_dma_region { int aos_reg; /* VAP register assignment */ }; -#define DUMP_DMA(rmesa) fprintf(stderr, "start=%d, end=%d, prt=%d, offset=%d, stride=%d, size=%d, format=%d, reg=%d\n",\ -rmesa->dma.current.start, rmesa->dma.current.end, rmesa->dma.current.ptr, rmesa->dma.current.aos_offset, \ -rmesa->dma.current.aos_stride, rmesa->dma.current.aos_size, rmesa->dma.current.aos_format, rmesa->dma.current.aos_reg); - struct r300_dma { /* Active dma region. Allocations for vertices and retained * regions come from here. Also used for emitting random vertices, * these may be flushed by calling flush_current(); */ - int dummy; /* move this below current to make arbvptorus work */ struct r300_dma_region current; void (*flush) (r300ContextPtr); @@ -519,7 +514,7 @@ struct r300_vap_reg_state { /* Vertex shader state */ /* 64 appears to be the maximum */ -#define VSF_MAX_FRAGMENT_LENGTH 64 +#define VSF_MAX_FRAGMENT_LENGTH (64*4) struct r300_vertex_shader_fragment { @@ -676,11 +671,10 @@ struct r300_state { GLuint render_inputs; /* actual render inputs that R300 was configured for. They are the same as tnl->render_inputs for fixed pipeline */ -#if 0 + struct { int transform_offset; /* Transform matrix offset, -1 if none */ } vap_param; /* vertex processor parameter allocation - tells where to write parameters */ -#endif int hw_stencil; }; |