mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
tgsi: Add a ugly fix for CONSTANT problems
This commit is contained in:
parent
f8a5cb8cb2
commit
ec8398d62f
1 changed files with 9 additions and 0 deletions
|
|
@ -241,6 +241,15 @@ compile_instruction(
|
|||
immediateMapping,
|
||||
indirectAccess );
|
||||
|
||||
/**
|
||||
* This not at all the correct solution.
|
||||
* FIXME: Roll this up in the above map functions
|
||||
*/
|
||||
if (fullsrc->SrcRegister.File == TGSI_FILE_IMMEDIATE && fullsrc->SrcRegister.Index == ~0) {
|
||||
fullsrc->SrcRegister.File = TGSI_FILE_CONSTANT;
|
||||
fullsrc->SrcRegister.Index = inst->SrcReg[i].Index;
|
||||
}
|
||||
|
||||
/* swizzle (ext swizzle also depends on negation) */
|
||||
{
|
||||
GLuint swz[4];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue