diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-26 21:48:55 +0200 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-26 21:48:55 +0200 |
commit | c5e76238315f07d5224949d4454658082db2a78f (patch) | |
tree | 7a41d245df0179552182c82ee568e3cf64ea4cfb /private_data.h | |
parent | 7158a8e7f622b90574bf4c08026d8f84f3b90bb9 (diff) |
Cache device register values driver-side
Diffstat (limited to 'private_data.h')
-rw-r--r-- | private_data.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/private_data.h b/private_data.h index fed5b60..f8f3057 100644 --- a/private_data.h +++ b/private_data.h @@ -15,6 +15,19 @@ struct doom_data { struct semaphore pong_async_sem; uint16_t cmd_counter; + + // cache of registers we don't want to modify when not neccessary + uint32_t surf_dst_pt; + uint32_t surf_src_pt; + uint32_t texture_pt; + uint32_t flat_addr; + uint32_t colormap_addr; + uint32_t translation_addr; + uint32_t surf_dims_w; + uint32_t surf_dims_h; + uint32_t texture_dims_s; + uint32_t texture_dims_h; + uint32_t draw_params; }; struct surface_data { |