diff options
author | Marek Olšák <[email protected]> | 2014-04-11 22:14:27 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-04-16 14:02:51 +0200 |
commit | dd72c327e967e0df7d5c59d6cde1a431e09e488e (patch) | |
tree | 8510c36cf8cb5c24b750706b2534f2c3937595f9 /src/gallium/drivers/r300 | |
parent | c6033a6cb8ae50d5513a00ea249f3df20d221b52 (diff) |
winsys/radeon: fold cs_set_flush_callback into cs_create
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index e28dbfb4034..0116d6c0683 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -379,7 +379,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, sizeof(struct pipe_transfer), 64, UTIL_SLAB_SINGLETHREADED); - r300->cs = rws->cs_create(rws, RING_GFX, NULL); + r300->cs = rws->cs_create(rws, RING_GFX, r300_flush_callback, r300, NULL); if (r300->cs == NULL) goto fail; @@ -420,8 +420,6 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, goto fail; r300->blitter->draw_rectangle = r300_blitter_draw_rectangle; - rws->cs_set_flush_callback(r300->cs, r300_flush_callback, r300); - /* The KIL opcode needs the first texture unit to be enabled * on r3xx-r4xx. In order to calm down the CS checker, we bind this * dummy texture there. */ |