diff options
author | Dave Airlie <[email protected]> | 2011-06-03 09:59:12 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-06-07 09:33:53 +1000 |
commit | 63184bc8b278ba82f5462798b323774c67a019e6 (patch) | |
tree | bf88ff0822e0b0ead6cddbb4f86c9ad1fdbb724f /src/gallium/drivers | |
parent | f356bb74de7ab9ad1085a0fc2f16c1dae4ff171e (diff) |
r600g: use an enabled list to track enabled blocks.
At the end of flushing we were scanning over 450 blocks
with generally about 50 enabled. This reduces the scanning
to just the list of enabled blocks.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index cc70600610e..b1444bf94f4 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -188,6 +188,7 @@ struct r600_block_reloc { struct r600_block { struct list_head list; + struct list_head enable_list; unsigned status; unsigned flags; unsigned start_offset; @@ -251,6 +252,7 @@ struct r600_context { unsigned nblocks; struct r600_block **blocks; struct list_head dirty; + struct list_head enable_list; unsigned pm4_ndwords; unsigned pm4_cdwords; unsigned pm4_dirty_cdwords; |