mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
d3d1x/sm4: save CUSTOMDATA
This is the data for the immediate constant buffer.
This commit is contained in:
parent
903e3257d0
commit
c8ae342bf3
1 changed files with 11 additions and 0 deletions
|
|
@ -197,7 +197,18 @@ relative:
|
|||
|
||||
if(opcode == SM4_OPCODE_CUSTOMDATA)
|
||||
{
|
||||
// immediate constant buffer data
|
||||
unsigned customlen = read32() - 2;
|
||||
|
||||
sm4_dcl& dcl = *new sm4_dcl;
|
||||
program.dcls.push_back(&dcl);
|
||||
|
||||
dcl.opcode = SM4_OPCODE_CUSTOMDATA;
|
||||
dcl.num = customlen;
|
||||
dcl.data = malloc(customlen * sizeof(tokens[0]));
|
||||
|
||||
memcpy(dcl.data, &tokens[0], customlen * sizeof(tokens[0]));
|
||||
|
||||
skip(customlen);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue