mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
wined3d: Create samplers for all 1.x instructions that sample.
This commit is contained in:
parent
a22933e08e
commit
74b85c8b38
@ -295,8 +295,15 @@ HRESULT shader_get_registers_used(
|
||||
if (WINED3DSHADER_VERSION_MAJOR(This->baseShader.hex_version) == 1 &&
|
||||
(WINED3DSIO_TEX == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXBEM == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXBEML == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXDP3TEX == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXM3x2TEX == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXM3x3TEX == curOpcode->opcode)) {
|
||||
WINED3DSIO_TEXM3x3SPEC == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXM3x3TEX == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXM3x3VSPEC == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXREG2AR == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXREG2GB == curOpcode->opcode ||
|
||||
WINED3DSIO_TEXREG2RGB == curOpcode->opcode)) {
|
||||
|
||||
/* Fake sampler usage, only set reserved bit and ttype */
|
||||
DWORD sampler_code = *pToken & WINED3DSP_REGNUM_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user