diff options
author | Chia-I Wu <[email protected]> | 2019-02-25 14:38:34 -0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:02:13 -0700 |
commit | 57327626dc754be46841997c5c2f777e7f326c40 (patch) | |
tree | 35b7a7bea463f9cad71914c53af0b35cc5a80cf3 /src/freedreno/vulkan/tu_cmd_buffer.c | |
parent | 59419bb691b2ba6af55146004bf876e7c7face82 (diff) |
turnip: simplify tu_cs sub-streams usage
Let tu_cs_begin_sub_stream imply tu_cs_reserve_space, and
tu_cs_end_sub_stream imply tu_cs_sanity_check. Callers are no
longer required to call them (but can still do if they choose to).
Diffstat (limited to 'src/freedreno/vulkan/tu_cmd_buffer.c')
-rw-r--r-- | src/freedreno/vulkan/tu_cmd_buffer.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 29219a0b039..ef07bd6c27b 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -1104,9 +1104,7 @@ tu_cmd_prepare_tile_load_ib(struct tu_cmd_buffer *cmd) } /* emit to tile-load sub_cs */ - tu_cs_reserve_space(cmd->device, &sub_cs, tile_load_space); tu6_emit_tile_load(cmd, &sub_cs); - tu_cs_sanity_check(&sub_cs); cmd->state.tile_load_ib = tu_cs_end_sub_stream(&cmd->tile_cs, &sub_cs); @@ -1131,9 +1129,7 @@ tu_cmd_prepare_tile_store_ib(struct tu_cmd_buffer *cmd) } /* emit to tile-store sub_cs */ - tu_cs_reserve_space(cmd->device, &sub_cs, tile_store_space); tu6_emit_tile_store(cmd, &sub_cs); - tu_cs_sanity_check(&sub_cs); cmd->state.tile_store_ib = tu_cs_end_sub_stream(&cmd->tile_cs, &sub_cs); } |