Commit 12be14b6 authored by Ivan Gyurdiev's avatar Ivan Gyurdiev Committed by Alexandre Julliard

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.
parent fadf6100
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment