summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nve4_compute.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2013-03-27 23:38:29 +0100
committerChristoph Bumiller <[email protected]>2013-03-29 00:33:00 +0100
commit25722e3454fb179933514f3a1b76e0f4662875bd (patch)
treef73ecdc92c2c782ad9748ede9d28fd2fcfae9276 /src/gallium/drivers/nvc0/nve4_compute.c
parent443b247878edd6a67adc073b0c36e2941436b9a0 (diff)
nvc0: use NOUVEAU_GETPARAM_GRAPH_UNITS to get MP count
Diffstat (limited to 'src/gallium/drivers/nvc0/nve4_compute.c')
-rw-r--r--src/gallium/drivers/nvc0/nve4_compute.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/nvc0/nve4_compute.c b/src/gallium/drivers/nvc0/nve4_compute.c
index c61d90cf0d1..943ae78b479 100644
--- a/src/gallium/drivers/nvc0/nve4_compute.c
+++ b/src/gallium/drivers/nvc0/nve4_compute.c
@@ -74,13 +74,13 @@ nve4_screen_compute_setup(struct nvc0_screen *screen,
* Actually this might be per-MP TEMP size and looks like I'm only using
* 2 MPs instead of all 8.
*/
- BEGIN_NVC0(push, NVE4_COMPUTE(TEMP_SIZE_HIGH(0)), 3);
- PUSH_DATAh(push, screen->tls_size / 2);
- PUSH_DATA (push, screen->tls_size / 2);
+ BEGIN_NVC0(push, NVE4_COMPUTE(MP_TEMP_SIZE_HIGH(0)), 3);
+ PUSH_DATAh(push, screen->tls->size / screen->mp_count);
+ PUSH_DATA (push, screen->tls->size / screen->mp_count);
PUSH_DATA (push, 0xff);
- BEGIN_NVC0(push, NVE4_COMPUTE(TEMP_SIZE_HIGH(1)), 3);
- PUSH_DATAh(push, screen->tls_size / 2);
- PUSH_DATA (push, screen->tls_size / 2);
+ BEGIN_NVC0(push, NVE4_COMPUTE(MP_TEMP_SIZE_HIGH(1)), 3);
+ PUSH_DATAh(push, screen->tls->size / screen->mp_count);
+ PUSH_DATA (push, screen->tls->size / screen->mp_count);
PUSH_DATA (push, 0xff);
/* Unified address space ? Who needs that ? Certainly not OpenCL.