mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
Add real support for VS1.1, ie make the relative addressing mode
work.
This commit is contained in:
parent
de3b0dfffb
commit
b3ca47c689
@ -410,7 +410,7 @@ inline static void vshader_program_dump_param(const DWORD param, int input) {
|
||||
TRACE("V[%lu]", reg);
|
||||
break;
|
||||
case D3DSPR_CONST:
|
||||
TRACE("C[%s%lu]", (reg & D3DVS_ADDRMODE_RELATIVE) ? "a0.x + " : "", reg);
|
||||
TRACE("C[%s%lu]", (param & D3DVS_ADDRMODE_RELATIVE) ? "a0.x + " : "", reg);
|
||||
break;
|
||||
case D3DSPR_ADDR: /*case D3DSPR_TEXTURE:*/
|
||||
TRACE("a[%lu]", reg);
|
||||
@ -656,7 +656,7 @@ HRESULT WINAPI IDirect3DVertexShaderImpl_ExecuteSW(IDirect3DVertexShaderImpl* vs
|
||||
p[i] = &input->V[reg];
|
||||
break;
|
||||
case D3DSPR_CONST:
|
||||
if (reg & D3DVS_ADDRMODE_RELATIVE) {
|
||||
if (pToken[i] & D3DVS_ADDRMODE_RELATIVE) {
|
||||
p[i] = &vshader->data->C[(DWORD) A[0].x + reg];
|
||||
} else {
|
||||
p[i] = &vshader->data->C[reg];
|
||||
@ -1050,7 +1050,7 @@ inline static void pshader_program_dump_param(const DWORD param, int input) {
|
||||
TRACE("V[%lu]", reg);
|
||||
break;
|
||||
case D3DSPR_CONST:
|
||||
TRACE("C[%s%lu]", (reg & D3DVS_ADDRMODE_RELATIVE) ? "a0.x + " : "", reg);
|
||||
TRACE("C[%s%lu]", (param & D3DVS_ADDRMODE_RELATIVE) ? "a0.x + " : "", reg);
|
||||
break;
|
||||
case D3DSPR_TEXTURE: /* case D3DSPR_ADDR: */
|
||||
TRACE("t[%lu]", reg);
|
||||
|
Loading…
Reference in New Issue
Block a user