diff options
author | Oliver McFadden <[email protected]> | 2007-05-26 15:49:24 +0000 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2007-05-26 15:49:24 +0000 |
commit | 0d8aba9a478a555794921f3d51cfe0c1c631853c (patch) | |
tree | af498e426a53c1d18ffa7c6090345276ddb65046 /src | |
parent | ae0f17d59168692c45bf780ff90fbcebd22e3577 (diff) |
r300: Added the r300VAPInputCntl0 function.
The function just returns the hard-coded value (0x5555) even though we have no
idea what this means...
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_emit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_emit.c b/src/mesa/drivers/dri/r300/r300_emit.c index 76740df81fc..f7d04f1d906 100644 --- a/src/mesa/drivers/dri/r300/r300_emit.c +++ b/src/mesa/drivers/dri/r300/r300_emit.c @@ -260,6 +260,12 @@ static GLuint r300VAPInputRoute1(uint32_t * dst, int swizzle[][4], GLuint nr) return (nr + 1) >> 1; } +static GLuint r300VAPInputCntl0(GLcontext * ctx, GLuint InputsRead) +{ + /* Hard coded value, no idea what it means */ + return 0x5555; +} + static GLuint r300VAPInputCntl1(GLcontext * ctx, GLuint InputsRead) { r300ContextPtr r300 = R300_CONTEXT(ctx); @@ -505,7 +511,7 @@ int r300EmitArrays(GLcontext * ctx) /* Setup INPUT_CNTL. */ /* I don't think this is needed for vertex buffers, but it doesn't hurt anything */ R300_STATECHANGE(r300, vic); - r300->hw.vic.cmd[R300_VIC_CNTL_0] = 0x5555; /* Hard coded value, no idea what it means */ + r300->hw.vic.cmd[R300_VIC_CNTL_0] = r300VAPInputCntl0(ctx, InputsRead); r300->hw.vic.cmd[R300_VIC_CNTL_1] = r300VAPInputCntl1(ctx, InputsRead); /* Setup OUTPUT_VTX_FMT. */ |