diff options
author | Marek Olšák <[email protected]> | 2010-05-26 19:29:58 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-26 22:22:52 +0200 |
commit | a81730cb3205330b5fa1c5a80dc9f0c6dad6cb04 (patch) | |
tree | 265dc47c203db2e831e91c8d725d10b708a4f6be /src/gallium/drivers/r300/r300_winsys.h | |
parent | 6ca3f86bdcadf850d7c8459c3674b6278a1fecea (diff) |
r300g: add get_cs_info winsys entrypoint, abandon check_cs
Diffstat (limited to 'src/gallium/drivers/r300/r300_winsys.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_winsys.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_winsys.h b/src/gallium/drivers/r300/r300_winsys.h index 3d0413f90af..f7cbbde410a 100644 --- a/src/gallium/drivers/r300/r300_winsys.h +++ b/src/gallium/drivers/r300/r300_winsys.h @@ -47,6 +47,13 @@ enum r300_reference_domain { /* bitfield */ R300_REF_HW = 2 }; +struct r300_cs_info { + /* In DWORDs. */ + unsigned used; + unsigned free; + unsigned capacity; +}; + struct r300_winsys_screen { void (*destroy)(struct r300_winsys_screen *ws); @@ -101,8 +108,9 @@ struct r300_winsys_screen { * Returns TRUE if a flush is required. */ boolean (*validate)(struct r300_winsys_screen* winsys); - /* Check to see if there's room for commands. */ - boolean (*check_cs)(struct r300_winsys_screen* winsys, int size); + /* Return current CS info. */ + void (*get_cs_info)(struct r300_winsys_screen *winsys, + struct r300_cs_info *info); /* Start a command emit. */ void (*begin_cs)(struct r300_winsys_screen* winsys, |