diff options
author | Jason Ekstrand <[email protected]> | 2016-04-18 15:14:47 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-20 14:54:09 -0700 |
commit | db25e1eec5231f18b103364ab9aee77d05a378f7 (patch) | |
tree | dec4126c85e75a37d83d7208ff7a92edac892264 /src/intel/vulkan/genX_cmd_buffer.c | |
parent | deb13870d8a8e107efb636618ccb94edff0f60bf (diff) |
anv/cmd_buffer: Use the new emit macro for DRAWING_RECTANGLE
Acked-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 4a75825e471..abf096133a5 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1058,15 +1058,16 @@ void genX(CmdBeginRenderPass)( const VkRect2D *render_area = &pRenderPassBegin->renderArea; - anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_DRAWING_RECTANGLE), - .ClippedDrawingRectangleYMin = MAX2(render_area->offset.y, 0), - .ClippedDrawingRectangleXMin = MAX2(render_area->offset.x, 0), - .ClippedDrawingRectangleYMax = - render_area->offset.y + render_area->extent.height - 1, - .ClippedDrawingRectangleXMax = - render_area->offset.x + render_area->extent.width - 1, - .DrawingRectangleOriginY = 0, - .DrawingRectangleOriginX = 0); + anv_batch_emit_blk(&cmd_buffer->batch, GENX(3DSTATE_DRAWING_RECTANGLE), r) { + r.ClippedDrawingRectangleYMin = MAX2(render_area->offset.y, 0); + r.ClippedDrawingRectangleXMin = MAX2(render_area->offset.x, 0); + r.ClippedDrawingRectangleYMax = + render_area->offset.y + render_area->extent.height - 1; + r.ClippedDrawingRectangleXMax = + render_area->offset.x + render_area->extent.width - 1; + r.DrawingRectangleOriginY = 0; + r.DrawingRectangleOriginX = 0; + } genX(cmd_buffer_set_subpass)(cmd_buffer, pass->subpasses); anv_cmd_buffer_clear_subpass(cmd_buffer); |