summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2010-02-16 00:08:32 +0100
committerJerome Glisse <jglisse@redhat.com>2010-02-16 00:08:32 +0100
commite2ece825f93ff9ab3e5e896f13b738f01f80b480 (patch)
treee4c61d1aeffc41f409f9bf2b0b08ab662c43acdf
parent4b515b4227d384501df2d407c5db2dadcb09d984 (diff)
shrink cb
-rw-r--r--r600_atom.c17
-rw-r--r--r700_atom.c27
2 files changed, 27 insertions, 17 deletions
diff --git a/r600_atom.c b/r600_atom.c
index 571f479..4aff639 100644
--- a/r600_atom.c
+++ b/r600_atom.c
@@ -1757,23 +1757,6 @@ void r600_atoms_release(struct radeon_device *rdev, struct r600_atoms *atoms)
} while (0)
void r600_tflat(struct radeon_atom *atom)
{
- WPKT(PKT3(PKT3_SET_CONFIG_REG, 6));
- WPKT(0x00000300);
- WPKT(0x0000000D);
- WPKT(0x40240054);
- WPKT(0x00000000);
- WPKT(0x00003CBC);
- WPKT(0x00800080);
- WPKT(0x00000000);
- WPKT(PKT3(PKT3_SET_CONTEXT_REG, 1));
- WPKT(0x0000008C);
- WPKT(0xAAAAAAAA);
- WPKT(PKT3(PKT3_SET_CONTEXT_REG, 1));
- WPKT(0x00000307);
- WPKT(0x00000000);
- WPKT(PKT3(PKT3_SET_CONTEXT_REG, 1));
- WPKT(0x00000308);
- WPKT(0x00000000);
WPKT(PKT3(PKT3_SET_CONTEXT_REG, 2));
WPKT(0x00000094);
WPKT(0x80000000);
diff --git a/r700_atom.c b/r700_atom.c
index d09e263..fe5d4f3 100644
--- a/r700_atom.c
+++ b/r700_atom.c
@@ -194,4 +194,31 @@ void r700_batches_states_default(struct radeon_device *rdev, struct r600_batches
ib->ptr[ib->cpkts++] = 0x00000316;
ib->ptr[ib->cpkts++] = 0x00000000;
ib->ptr[ib->cpkts++] = 0x00000000;
+ /* SQ_CONFIG
+ * SQ_GPR_RESOURCE_MGMT_1
+ * SQ_GPR_RESOURCE_MGMT_2
+ * SQ_THREAD_RESOURCE_MGMT
+ * SQ_STACK_RESOURCE_MGMT_1
+ * SQ_STACK_RESOURCE_MGMT_2
+ */
+ ib->ptr[ib->cpkts++] = PKT3(PKT3_SET_CONFIG_REG, 6);
+ ib->ptr[ib->cpkts++] = 0x00000300;
+ ib->ptr[ib->cpkts++] = 0x0000000D;
+ ib->ptr[ib->cpkts++] = 0x40240054;
+ ib->ptr[ib->cpkts++] = 0x00000000;
+ ib->ptr[ib->cpkts++] = 0x00003CBC;
+ ib->ptr[ib->cpkts++] = 0x00800080;
+ ib->ptr[ib->cpkts++] = 0x00000000;
+ /* R7xx PA_SC_EDGERULE */
+ ib->ptr[ib->cpkts++] = PKT3(PKT3_SET_CONTEXT_REG, 1);
+ ib->ptr[ib->cpkts++] = 0x0000008C;
+ ib->ptr[ib->cpkts++] = 0xAAAAAAAA;
+ /* PA_SC_AA_SAMPLE_LOCS_MCTX */
+ ib->ptr[ib->cpkts++] = PKT3(PKT3_SET_CONTEXT_REG, 1);
+ ib->ptr[ib->cpkts++] = 0x00000307;
+ ib->ptr[ib->cpkts++] = 0x00000000;
+ /* PA_SC_AA_SAMPLE_LOCS_8S_WD1_M */
+ ib->ptr[ib->cpkts++] = PKT3(PKT3_SET_CONTEXT_REG, 1);
+ ib->ptr[ib->cpkts++] = 0x00000308;
+ ib->ptr[ib->cpkts++] = 0x00000000;
}