gallium/radeon: move a comment to the correct place
authorMarek Olšák <marek.olsak@amd.com>
Wed, 13 Apr 2016 15:27:02 +0000 (17:27 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 13 Apr 2016 15:31:03 +0000 (17:31 +0200)
trivial

src/gallium/drivers/radeon/r600_viewport.c

index 4901ba0797701d5b9ff2bbb0927cbdff4f15fc0f..ea558cd22de6d06f3ae4a7884df65c6077add127 100644 (file)
@@ -44,6 +44,9 @@ static void r600_set_scissor_states(struct pipe_context *ctx,
        rctx->set_atom_dirty(rctx, &rctx->scissors.atom, true);
 }
 
+/* Since the guard band disables clipping, we have to clip per-pixel
+ * using a scissor.
+ */
 static void r600_get_scissor_from_viewport(struct r600_common_context *rctx,
                                           const struct pipe_viewport_state *vp,
                                           struct r600_signed_scissor *scissor)
@@ -127,9 +130,6 @@ static void r600_emit_one_scissor(struct r600_common_context *rctx,
 {
        struct pipe_scissor_state final;
 
-       /* Since the guard band disables clipping, we have to clip per-pixel
-        * using a scissor.
-        */
        r600_clamp_scissor(rctx, &final, vp_scissor);
 
        if (scissor)