nvc0: use a define for the driver constant buffer size
[mesa.git] / src / gallium / drivers / nouveau / nvc0 / nvc0_screen.c
index e0bfd3b41444ec114b1333da29d7835372b99111..d22150a0b9979413ebdebeff7f620640948e1ee9 100644 (file)
@@ -960,7 +960,7 @@ nvc0_screen_create(struct nouveau_device *dev)
       /* TIC and TSC entries for each unit (nve4+ only) */
       /* auxiliary constants (6 user clip planes, base instance id) */
       BEGIN_NVC0(push, NVC0_3D(CB_SIZE), 3);
-      PUSH_DATA (push, 2048);
+      PUSH_DATA (push, NVC0_CB_AUX_SIZE);
       PUSH_DATAh(push, screen->uniform_bo->offset + NVC0_CB_AUX_INFO(i));
       PUSH_DATA (push, screen->uniform_bo->offset + NVC0_CB_AUX_INFO(i));
       BEGIN_NVC0(push, NVC0_3D(CB_BIND(i)), 1);