Skip to content

Commit

Permalink
hwtest/pgraph: On NV20+, ctx_cache can be written with fifo enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwkmwkmwk committed Dec 31, 2016
1 parent 69ca0c5 commit 6afdfe6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hwtest/pgraph_state_tests.cc
Expand Up @@ -476,33 +476,33 @@ class MMIOWriteControlNv4Test : public StateTest {
case 12:
idx = rnd() & 7;
reg = (chipset.card_type >= 0x10 ? 0x400160 : 0x400180) + idx * 4;
if (!orig.fifo_enable)
if (!orig.fifo_enable || chipset.card_type >= 0x20)
exp.ctx_cache[idx][0] = val & ctxc_mask;
break;
case 13:
idx = rnd() & 7;
reg = (chipset.card_type >= 0x10 ? 0x400180 : 0x4001a0) + idx * 4;
if (!orig.fifo_enable)
if (!orig.fifo_enable || chipset.card_type >= 0x20)
exp.ctx_cache[idx][1] = val & 0xffff3f03;
break;
case 14:
idx = rnd() & 7;
reg = (chipset.card_type >= 0x10 ? 0x4001a0 : 0x4001c0) + idx * 4;
if (!orig.fifo_enable)
if (!orig.fifo_enable || chipset.card_type >= 0x20)
exp.ctx_cache[idx][2] = val;
break;
case 15:
idx = rnd() & 7;
reg = (chipset.card_type >= 0x10 ? 0x4001c0 : 0x4001e0) + idx * 4;
if (!orig.fifo_enable)
if (!orig.fifo_enable || chipset.card_type >= 0x20)
exp.ctx_cache[idx][3] = val & 0x0000ffff;
break;
case 16:
if (chipset.card_type < 0x10)
return;
idx = rnd() & 7;
reg = 0x4001e0 + idx * 4;
if (!orig.fifo_enable)
if (!orig.fifo_enable || chipset.card_type >= 0x20)
exp.ctx_cache[idx][4] = val;
break;
case 17:
Expand Down

0 comments on commit 6afdfe6

Please sign in to comment.