wined3d: Remove bogus address register warning for pixel shaders.

Pixel shaders don't have an address register, this warning is bogus.
D3DSPR_ADDR is interpreted as D3DSPR_TEXTURE for pixel shaders.
oldstable
Ivan Gyurdiev 2006-04-11 06:18:59 -04:00 committed by Alexandre Julliard
parent fadf610065
commit 12be14b6cc
1 changed files with 0 additions and 10 deletions

View File

@ -965,7 +965,6 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
unsigned lineNum = 0; /* The line number of the generated program (for loging)*/
char *pgmStr = NULL; /* A pointer to the program data generated by this function */
char tmpLine[255];
DWORD nUseAddressRegister = 0;
#if 0 /* TODO: loop register (just another address register ) */
BOOL hasLoops = FALSE;
#endif
@ -1112,15 +1111,6 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
case D3DSIO_PHASE:
continue;
case D3DSIO_MOV:
/* Address registers must be loaded with the ARL instruction */
if ((((*pToken) & D3DSP_REGTYPE_MASK) >> D3DSP_REGTYPE_SHIFT) == D3DSPR_ADDR) {
if (((*pToken) & REGMASK) < nUseAddressRegister) {
strcpy(tmpLine, "ARL");
break;
} else
FIXME("(%p) Try to load A%ld an undeclared address register!\n", This, ((*pToken) & REGMASK));
}
/* fall through */
case D3DSIO_CND:
case D3DSIO_CMP:
case D3DSIO_ADD: