Commit 069231d8 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Remove _prefix on tile coords

parent b88949f7
......@@ -181,7 +181,7 @@ struct mali_payload_vertex_tiler {
u32 index_count;
/* No hidden structure; literally just a pointer to an array of
* uint32_t indeices. Thanks, guys, for not making my life insane for
* uint32_t indices. Thanks, guys, for not making my life insane for
* once! NULL for non-indexed draws. */
uintptr_t indices;
......@@ -346,8 +346,8 @@ struct mali_payload_fragment {
* 0xF0000000 or 0x0000F000. If it's 0xF000F000, feel free to just
* remove this comment
*/
u32 _min_tile_coord;
u32 _max_tile_coord;
u32 min_tile_coord;
u32 max_tile_coord;
mali_ptr framebuffer;
} __attribute__((packed));
//ASSERT_SIZEOF_TYPE(struct mali_payload_fragment, 12, 16);
......
......@@ -735,15 +735,15 @@ static int panwrap_replay_fragment_job(const struct panwrap_mapped_memory *mem,
/* See the comments by the macro definitions for mathematical context
* on why this is so weird */
panwrap_prop("_min_tile_coord = MALI_COORDINATE_TO_TILE_MIN(%d, %d, %d)",
MALI_TILE_COORD_X(s->_min_tile_coord) << MALI_TILE_SHIFT,
MALI_TILE_COORD_Y(s->_min_tile_coord) << MALI_TILE_SHIFT,
MALI_TILE_COORD_FLAGS(s->_min_tile_coord));
panwrap_prop("_max_tile_coord = MALI_COORDINATE_TO_TILE_MAX(%d, %d, %d)",
(MALI_TILE_COORD_X(s->_max_tile_coord) + 1) << MALI_TILE_SHIFT,
(MALI_TILE_COORD_Y(s->_max_tile_coord) + 1) << MALI_TILE_SHIFT,
MALI_TILE_COORD_FLAGS(s->_max_tile_coord));
panwrap_prop("min_tile_coord = MALI_COORDINATE_TO_TILE_MIN(%d, %d, %d)",
MALI_TILE_COORD_X(s->min_tile_coord) << MALI_TILE_SHIFT,
MALI_TILE_COORD_Y(s->min_tile_coord) << MALI_TILE_SHIFT,
MALI_TILE_COORD_FLAGS(s->min_tile_coord));
panwrap_prop("max_tile_coord = MALI_COORDINATE_TO_TILE_MAX(%d, %d, %d)",
(MALI_TILE_COORD_X(s->max_tile_coord) + 1) << MALI_TILE_SHIFT,
(MALI_TILE_COORD_Y(s->max_tile_coord) + 1) << MALI_TILE_SHIFT,
MALI_TILE_COORD_FLAGS(s->max_tile_coord));
/* If the FBD was just decoded, we can refer to it by pointer. If not,
* we have to fallback on offsets. */
......
......@@ -146,8 +146,8 @@ struct mali_payload_fragment
trans_fragment_payload(int width, int height, mali_ptr fbd, enum mali_fbd_type type)
{
struct mali_payload_fragment ret = {
._min_tile_coord = MALI_COORDINATE_TO_TILE_MIN(0, 0, 0),
._max_tile_coord = MALI_COORDINATE_TO_TILE_MAX(width, height, 0),
.min_tile_coord = MALI_COORDINATE_TO_TILE_MIN(0, 0, 0),
.max_tile_coord = MALI_COORDINATE_TO_TILE_MAX(width, height, 0),
.framebuffer = fbd | type,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment