diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-01-28 02:51:51 -0800 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-02-01 23:30:31 -0800 |
commit | 80dc1801409f9913cc37b8fc8e68c692bc8a22ca (patch) | |
tree | e3ebd9fe28f22c9562798c226c789c6b2f749656 /src/gallium/drivers/r300/r300_cs.h | |
parent | f6add70ef889b609a114baf8f6bcb43413caa702 (diff) | |
download | external_mesa3d-80dc1801409f9913cc37b8fc8e68c692bc8a22ca.zip external_mesa3d-80dc1801409f9913cc37b8fc8e68c692bc8a22ca.tar.gz external_mesa3d-80dc1801409f9913cc37b8fc8e68c692bc8a22ca.tar.bz2 |
r300: A handful of thingys.
Diffstat (limited to 'src/gallium/drivers/r300/r300_cs.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_cs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_cs.h b/src/gallium/drivers/r300/r300_cs.h index 653e2fd..42ec9fb 100644 --- a/src/gallium/drivers/r300/r300_cs.h +++ b/src/gallium/drivers/r300/r300_cs.h @@ -61,7 +61,7 @@ static uint32_t pack_float_32(float f) #define CS_LOCALS(context) \ struct r300_winsys* cs_winsys = context->winsys; \ struct radeon_cs* cs = cs_winsys->cs; \ - int cs_count; + int cs_count = 0; #define CHECK_CS(size) \ cs_winsys->check_cs(cs, (size)) @@ -75,11 +75,13 @@ static uint32_t pack_float_32(float f) } while (0) #define OUT_CS(value) do { \ - cs_winsys->write_cs_dword(cs, value); \ + cs_winsys->write_cs_dword(cs, (value)); \ + cs_count--; \ } while (0) #define OUT_CS_32F(value) do { \ cs_winsys->write_cs_dword(cs, pack_float_32(value)); \ + cs_count--; \ } while (0) #define OUT_CS_REG(register, value) do { \ |