r600g: Use the bitfield define matching the register it is used for.
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>
Fri, 23 Sep 2011 17:43:31 +0000 (19:43 +0200)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Tue, 18 Oct 2011 04:35:21 +0000 (06:35 +0200)
Fix a typo that should result in the same code.

src/gallium/drivers/r600/r600_state.c

index 03e6958..1aa4105 100644 (file)
@@ -2108,8 +2108,8 @@ void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader *shad
                                0, 0xFFFFFFFF, shader->bo, RADEON_USAGE_READ);
        r600_pipe_state_add_reg(rstate,
                                R_028850_SQ_PGM_RESOURCES_PS,
-                               S_028868_NUM_GPRS(rshader->bc.ngpr) |
-                               S_028868_STACK_SIZE(rshader->bc.nstack),
+                               S_028850_NUM_GPRS(rshader->bc.ngpr) |
+                               S_028850_STACK_SIZE(rshader->bc.nstack),
                                0xFFFFFFFF, NULL, 0);
        r600_pipe_state_add_reg(rstate,
                                R_028854_SQ_PGM_EXPORTS_PS,