mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-25 08:05:34 +00:00
Merge pull request #1215 from ogniK5377/texs-nodep-assert
Added assert for TEXS nodep
This commit is contained in:
commit
89be49d2f3
|
@ -519,6 +519,7 @@ union Instruction {
|
||||||
union {
|
union {
|
||||||
BitField<0, 8, Register> gpr0;
|
BitField<0, 8, Register> gpr0;
|
||||||
BitField<28, 8, Register> gpr28;
|
BitField<28, 8, Register> gpr28;
|
||||||
|
BitField<49, 1, u64> nodep;
|
||||||
BitField<50, 3, u64> component_mask_selector;
|
BitField<50, 3, u64> component_mask_selector;
|
||||||
BitField<53, 4, u64> texture_info;
|
BitField<53, 4, u64> texture_info;
|
||||||
|
|
||||||
|
|
|
@ -887,6 +887,8 @@ private:
|
||||||
// TEXS has two destination registers and a swizzle. The first two elements in the swizzle
|
// TEXS has two destination registers and a swizzle. The first two elements in the swizzle
|
||||||
// go into gpr0+0 and gpr0+1, and the rest goes into gpr28+0 and gpr28+1
|
// go into gpr0+0 and gpr0+1, and the rest goes into gpr28+0 and gpr28+1
|
||||||
|
|
||||||
|
ASSERT_MSG(instr.texs.nodep == 0, "TEXS nodep not implemented");
|
||||||
|
|
||||||
size_t written_components = 0;
|
size_t written_components = 0;
|
||||||
for (u32 component = 0; component < 4; ++component) {
|
for (u32 component = 0; component < 4; ++component) {
|
||||||
if (!instr.texs.IsComponentEnabled(component)) {
|
if (!instr.texs.IsComponentEnabled(component)) {
|
||||||
|
|
Loading…
Reference in a new issue