diff options
author | Icenowy Zheng <[email protected]> | 2019-09-22 09:37:38 +0800 |
---|---|---|
committer | Icenowy Zheng <[email protected]> | 2019-09-22 15:22:38 +0800 |
commit | 8278b236b05b2d2f04439e6bc12766315a95869b (patch) | |
tree | 5961bb562d2e579953ce0c1612d6fe3a219c7752 /src/gallium/drivers/lima/lima_context.h | |
parent | 40087ffc5b91d0e2800c29d4de76b506deb21f00 (diff) |
lima: fix PLBU viewport configuration
The PLBU expects the viewport's 4 borders' coordinates, however
currently we're feeding the coordinate of the left-bottom point and the
size to it, which leads to misrendering when the left-bottom point is
not (0,0).
Change the macros for the viewport PLBU command, and the data feed to
it. The code to calculate the 4 borders is ported from Panfrost.
Signed-off-by: Icenowy Zheng <[email protected]>
Reviewed-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_context.h')
-rw-r--r-- | src/gallium/drivers/lima/lima_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_context.h b/src/gallium/drivers/lima/lima_context.h index cb070f021a2..286f8dc86c2 100644 --- a/src/gallium/drivers/lima/lima_context.h +++ b/src/gallium/drivers/lima/lima_context.h @@ -107,7 +107,7 @@ struct lima_context_vertex_buffer { struct lima_context_viewport_state { struct pipe_viewport_state transform; - float x, y, width, height; + float left, right, bottom, top; float near, far; }; |