r600g: Fix typo.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Wed, 8 Jun 2011 15:33:57 +0000 (17:33 +0200)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 13 Jun 2011 15:31:13 +0000 (11:31 -0400)
Fix an obvious typo in the yet unused part of the shader setup.

src/gallium/drivers/r600/r600_state.c

index 5a1c456309b97ccaa016c560bd68170af969e8ca..98f5c511f5b7b57e0d14a203599f33464f57a95d 100644 (file)
@@ -1243,7 +1243,7 @@ void r600_init_config(struct r600_pipe_context *rctx)
        /* SQ_GPR_RESOURCE_MGMT_2 */
        tmp = 0;
        tmp |= S_008C08_NUM_GS_GPRS(num_gs_gprs);
-       tmp |= S_008C08_NUM_GS_GPRS(num_es_gprs);
+       tmp |= S_008C08_NUM_ES_GPRS(num_es_gprs);
        r600_pipe_state_add_reg(rstate, R_008C08_SQ_GPR_RESOURCE_MGMT_2, tmp, 0xFFFFFFFF, NULL);
 
        /* SQ_THREAD_RESOURCE_MGMT */