dzn: no more reinterpret_cast
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15816>
This commit is contained in:
parent
79119ac478
commit
5a9571ee2c
|
@ -2336,7 +2336,7 @@ dzn_cmd_buffer_update_pipeline(struct dzn_cmd_buffer *cmdbuf, uint32_t bindpoint
|
|||
if (cmdbuf->state.bindpoint[bindpoint].dirty & DZN_CMD_BINDPOINT_DIRTY_PIPELINE) {
|
||||
if (bindpoint == VK_PIPELINE_BIND_POINT_GRAPHICS) {
|
||||
const struct dzn_graphics_pipeline *gfx =
|
||||
reinterpret_cast<const struct dzn_graphics_pipeline *>(pipeline);
|
||||
(const struct dzn_graphics_pipeline *)pipeline;
|
||||
ID3D12GraphicsCommandList1_SetGraphicsRootSignature(cmdbuf->cmdlist, pipeline->root.sig);
|
||||
ID3D12GraphicsCommandList1_IASetPrimitiveTopology(cmdbuf->cmdlist, gfx->ia.topology);
|
||||
} else {
|
||||
|
@ -2479,7 +2479,7 @@ static void
|
|||
dzn_cmd_buffer_update_viewports(struct dzn_cmd_buffer *cmdbuf)
|
||||
{
|
||||
const struct dzn_graphics_pipeline *pipeline =
|
||||
reinterpret_cast<const struct dzn_graphics_pipeline *>(cmdbuf->state.pipeline);
|
||||
(const struct dzn_graphics_pipeline *)cmdbuf->state.pipeline;
|
||||
|
||||
if (!(cmdbuf->state.dirty & DZN_CMD_DIRTY_VIEWPORTS) ||
|
||||
!pipeline->vp.count)
|
||||
|
@ -2492,7 +2492,7 @@ static void
|
|||
dzn_cmd_buffer_update_scissors(struct dzn_cmd_buffer *cmdbuf)
|
||||
{
|
||||
const struct dzn_graphics_pipeline *pipeline =
|
||||
reinterpret_cast<const struct dzn_graphics_pipeline *>(cmdbuf->state.pipeline);
|
||||
(const struct dzn_graphics_pipeline *)cmdbuf->state.pipeline;
|
||||
|
||||
if (!(cmdbuf->state.dirty & DZN_CMD_DIRTY_SCISSORS))
|
||||
return;
|
||||
|
@ -2521,7 +2521,7 @@ static void
|
|||
dzn_cmd_buffer_update_vbviews(struct dzn_cmd_buffer *cmdbuf)
|
||||
{
|
||||
const struct dzn_graphics_pipeline *pipeline =
|
||||
reinterpret_cast<const struct dzn_graphics_pipeline *>(cmdbuf->state.pipeline);
|
||||
(const struct dzn_graphics_pipeline *)cmdbuf->state.pipeline;
|
||||
unsigned start, end;
|
||||
|
||||
BITSET_FOREACH_RANGE(start, end, cmdbuf->state.vb.dirty, MAX_VBS)
|
||||
|
|
Loading…
Reference in New Issue