2 * Copyright 2010 Jerome Glisse <glisse@freedesktop.org>
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * on the rights to use, copy, modify, merge, publish, distribute, sub
8 * license, and/or sell copies of the Software, and to permit persons to whom
9 * the Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
21 * USE OR OTHER DEALINGS IN THE SOFTWARE.
23 #include "r600_pipe.h"
24 #include "util/u_surface.h"
25 #include "util/u_blitter.h"
26 #include "util/u_format.h"
28 enum r600_blitter_op
/* bitmask */
30 R600_SAVE_FRAGMENT_STATE
= 1,
31 R600_SAVE_TEXTURES
= 2,
32 R600_SAVE_FRAMEBUFFER
= 4,
33 R600_DISABLE_RENDER_COND
= 8,
35 R600_CLEAR
= R600_SAVE_FRAGMENT_STATE
,
37 R600_CLEAR_SURFACE
= R600_SAVE_FRAGMENT_STATE
| R600_SAVE_FRAMEBUFFER
,
39 R600_COPY_BUFFER
= R600_DISABLE_RENDER_COND
,
41 R600_COPY_TEXTURE
= R600_SAVE_FRAGMENT_STATE
| R600_SAVE_FRAMEBUFFER
| R600_SAVE_TEXTURES
|
42 R600_DISABLE_RENDER_COND
,
44 R600_DECOMPRESS
= R600_SAVE_FRAGMENT_STATE
| R600_SAVE_FRAMEBUFFER
| R600_DISABLE_RENDER_COND
,
47 static void r600_blitter_begin(struct pipe_context
*ctx
, enum r600_blitter_op op
)
49 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
51 r600_suspend_nontimer_queries(rctx
);
53 util_blitter_save_vertex_buffers(rctx
->blitter
,
54 util_last_bit(rctx
->vertex_buffer_state
.enabled_mask
),
55 rctx
->vertex_buffer_state
.vb
);
56 util_blitter_save_vertex_elements(rctx
->blitter
, rctx
->vertex_elements
);
57 util_blitter_save_vertex_shader(rctx
->blitter
, rctx
->vs_shader
);
58 util_blitter_save_so_targets(rctx
->blitter
, rctx
->num_so_targets
,
59 (struct pipe_stream_output_target
**)rctx
->so_targets
);
60 util_blitter_save_rasterizer(rctx
->blitter
, rctx
->states
[R600_PIPE_STATE_RASTERIZER
]);
62 if (op
& R600_SAVE_FRAGMENT_STATE
) {
63 if (rctx
->states
[R600_PIPE_STATE_VIEWPORT
]) {
64 util_blitter_save_viewport(rctx
->blitter
, &rctx
->viewport
);
66 util_blitter_save_fragment_shader(rctx
->blitter
, rctx
->ps_shader
);
67 util_blitter_save_blend(rctx
->blitter
, rctx
->states
[R600_PIPE_STATE_BLEND
]);
68 util_blitter_save_depth_stencil_alpha(rctx
->blitter
, rctx
->states
[R600_PIPE_STATE_DSA
]);
69 if (rctx
->states
[R600_PIPE_STATE_STENCIL_REF
]) {
70 util_blitter_save_stencil_ref(rctx
->blitter
, &rctx
->stencil_ref
);
72 util_blitter_save_sample_mask(rctx
->blitter
, rctx
->sample_mask
.sample_mask
);
75 if (op
& R600_SAVE_FRAMEBUFFER
)
76 util_blitter_save_framebuffer(rctx
->blitter
, &rctx
->framebuffer
);
78 if (op
& R600_SAVE_TEXTURES
) {
79 util_blitter_save_fragment_sampler_states(
80 rctx
->blitter
, rctx
->ps_samplers
.n_samplers
,
81 (void**)rctx
->ps_samplers
.samplers
);
83 util_blitter_save_fragment_sampler_views(
84 rctx
->blitter
, util_last_bit(rctx
->ps_samplers
.views
.enabled_mask
),
85 (struct pipe_sampler_view
**)rctx
->ps_samplers
.views
.views
);
88 if ((op
& R600_DISABLE_RENDER_COND
) && rctx
->current_render_cond
) {
89 rctx
->saved_render_cond
= rctx
->current_render_cond
;
90 rctx
->saved_render_cond_mode
= rctx
->current_render_cond_mode
;
91 rctx
->context
.render_condition(&rctx
->context
, NULL
, 0);
96 static void r600_blitter_end(struct pipe_context
*ctx
)
98 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
99 if (rctx
->saved_render_cond
) {
100 rctx
->context
.render_condition(&rctx
->context
,
101 rctx
->saved_render_cond
,
102 rctx
->saved_render_cond_mode
);
103 rctx
->saved_render_cond
= NULL
;
105 r600_resume_nontimer_queries(rctx
);
108 static unsigned u_max_layer(struct pipe_resource
*r
, unsigned level
)
111 case PIPE_TEXTURE_CUBE
:
113 case PIPE_TEXTURE_3D
:
114 return u_minify(r
->depth0
, level
) - 1;
115 case PIPE_TEXTURE_1D_ARRAY
:
116 case PIPE_TEXTURE_2D_ARRAY
:
117 return r
->array_size
- 1;
123 static unsigned u_max_sample(struct pipe_resource
*r
)
125 return r
->nr_samples
? r
->nr_samples
- 1 : 0;
128 void r600_blit_uncompress_depth(struct pipe_context
*ctx
,
129 struct r600_resource_texture
*texture
,
130 struct r600_resource_texture
*staging
,
131 unsigned first_level
, unsigned last_level
,
132 unsigned first_layer
, unsigned last_layer
,
133 unsigned first_sample
, unsigned last_sample
)
135 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
136 unsigned layer
, level
, sample
, checked_last_layer
, max_layer
, max_sample
;
137 struct r600_resource_texture
*flushed_depth_texture
= staging
?
138 staging
: texture
->flushed_depth_texture
;
139 const struct util_format_description
*desc
=
140 util_format_description(texture
->resource
.b
.b
.format
);
143 if (!staging
&& !texture
->dirty_db_mask
)
146 if (rctx
->family
== CHIP_RV610
|| rctx
->family
== CHIP_RV630
||
147 rctx
->family
== CHIP_RV620
|| rctx
->family
== CHIP_RV635
)
152 /* Enable decompression in DB_RENDER_CONTROL */
153 rctx
->db_misc_state
.flush_depthstencil_through_cb
= true;
154 rctx
->db_misc_state
.copy_depth
= util_format_has_depth(desc
);
155 rctx
->db_misc_state
.copy_stencil
= util_format_has_stencil(desc
);
156 rctx
->db_misc_state
.copy_sample
= first_sample
;
157 r600_atom_dirty(rctx
, &rctx
->db_misc_state
.atom
);
159 max_sample
= u_max_sample(&texture
->resource
.b
.b
);
161 for (level
= first_level
; level
<= last_level
; level
++) {
162 if (!staging
&& !(texture
->dirty_db_mask
& (1 << level
)))
165 /* The smaller the mipmap level, the less layers there are
166 * as far as 3D textures are concerned. */
167 max_layer
= u_max_layer(&texture
->resource
.b
.b
, level
);
168 checked_last_layer
= last_layer
< max_layer
? last_layer
: max_layer
;
170 for (layer
= first_layer
; layer
<= checked_last_layer
; layer
++) {
171 for (sample
= first_sample
; sample
<= last_sample
; sample
++) {
172 struct pipe_surface
*zsurf
, *cbsurf
, surf_tmpl
;
174 if (sample
!= rctx
->db_misc_state
.copy_sample
) {
175 rctx
->db_misc_state
.copy_sample
= sample
;
176 r600_atom_dirty(rctx
, &rctx
->db_misc_state
.atom
);
179 surf_tmpl
.format
= texture
->real_format
;
180 surf_tmpl
.u
.tex
.level
= level
;
181 surf_tmpl
.u
.tex
.first_layer
= layer
;
182 surf_tmpl
.u
.tex
.last_layer
= layer
;
183 surf_tmpl
.usage
= PIPE_BIND_DEPTH_STENCIL
;
185 zsurf
= ctx
->create_surface(ctx
, &texture
->resource
.b
.b
, &surf_tmpl
);
187 surf_tmpl
.format
= flushed_depth_texture
->real_format
;
188 surf_tmpl
.u
.tex
.level
= level
;
189 surf_tmpl
.u
.tex
.first_layer
= layer
;
190 surf_tmpl
.u
.tex
.last_layer
= layer
;
191 surf_tmpl
.usage
= PIPE_BIND_RENDER_TARGET
;
192 cbsurf
= ctx
->create_surface(ctx
,
193 &flushed_depth_texture
->resource
.b
.b
, &surf_tmpl
);
195 r600_blitter_begin(ctx
, R600_DECOMPRESS
);
196 util_blitter_custom_depth_stencil(rctx
->blitter
, zsurf
, cbsurf
, 1 << sample
,
197 rctx
->custom_dsa_flush
, depth
);
198 r600_blitter_end(ctx
);
200 pipe_surface_reference(&zsurf
, NULL
);
201 pipe_surface_reference(&cbsurf
, NULL
);
205 /* The texture will always be dirty if some layers or samples aren't flushed.
206 * I don't think this case occurs often though. */
208 first_layer
== 0 && last_layer
== max_layer
&&
209 first_sample
== 0 && last_sample
== max_sample
) {
210 texture
->dirty_db_mask
&= ~(1 << level
);
214 /* reenable compression in DB_RENDER_CONTROL */
215 rctx
->db_misc_state
.flush_depthstencil_through_cb
= false;
216 r600_atom_dirty(rctx
, &rctx
->db_misc_state
.atom
);
219 void r600_flush_depth_textures(struct r600_context
*rctx
,
220 struct r600_samplerview_state
*textures
)
223 unsigned depth_texture_mask
= textures
->depth_texture_mask
;
225 while (depth_texture_mask
) {
226 struct pipe_sampler_view
*view
;
227 struct r600_resource_texture
*tex
;
229 i
= u_bit_scan(&depth_texture_mask
);
231 view
= &textures
->views
[i
]->base
;
234 tex
= (struct r600_resource_texture
*)view
->texture
;
235 assert(tex
->is_depth
&& !tex
->is_flushing_texture
);
237 r600_blit_uncompress_depth(&rctx
->context
, tex
, NULL
,
238 view
->u
.tex
.first_level
, view
->u
.tex
.last_level
,
239 0, u_max_layer(&tex
->resource
.b
.b
, view
->u
.tex
.first_level
),
240 0, u_max_sample(&tex
->resource
.b
.b
));
244 static void r600_copy_first_sample(struct pipe_context
*ctx
,
245 const struct pipe_resolve_info
*info
)
247 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
248 struct r600_resource_texture
*rsrc
= (struct r600_resource_texture
*)info
->src
.res
;
249 struct pipe_surface
*dst_view
, dst_templ
;
250 struct pipe_sampler_view src_templ
, *src_view
;
253 if (rsrc
->is_depth
&& !rsrc
->is_flushing_texture
) {
254 if (!r600_init_flushed_depth_texture(ctx
, info
->src
.res
, NULL
))
257 /* Decompress the first sample only. */
258 r600_blit_uncompress_depth(ctx
, rsrc
, NULL
,
260 info
->src
.layer
, info
->src
.layer
,
264 /* this is correct for upside-down blits too */
265 u_box_2d(info
->src
.x0
,
267 info
->src
.x1
- info
->src
.x0
,
268 info
->src
.y1
- info
->src
.y0
, &box
);
270 /* Initialize the surface. */
271 util_blitter_default_dst_texture(&dst_templ
, info
->dst
.res
,
272 info
->dst
.level
, info
->dst
.layer
, &box
);
273 dst_view
= ctx
->create_surface(ctx
, info
->dst
.res
, &dst_templ
);
275 /* Initialize the sampler view. */
276 util_blitter_default_src_texture(&src_templ
, info
->src
.res
, 0);
277 src_view
= ctx
->create_sampler_view(ctx
, info
->src
.res
, &src_templ
);
279 /* Copy the first sample into dst. */
280 r600_blitter_begin(ctx
, R600_COPY_TEXTURE
);
281 util_blitter_copy_texture_view(rctx
->blitter
, dst_view
, ~0, info
->dst
.x0
,
282 info
->dst
.y0
, src_view
, 0, &box
,
283 info
->src
.res
->width0
, info
->src
.res
->height0
,
285 r600_blitter_end(ctx
);
287 pipe_surface_reference(&dst_view
, NULL
);
288 pipe_sampler_view_reference(&src_view
, NULL
);
291 static void r600_resource_resolve(struct pipe_context
*ctx
,
292 const struct pipe_resolve_info
*info
)
294 /* make sure we're doing a resolve operation */
295 assert(info
->src
.res
->nr_samples
> 1);
296 assert(info
->dst
.res
->nr_samples
<= 1);
298 /* limitations of multisample resources */
299 assert(info
->src
.res
->last_level
== 0);
300 assert(info
->src
.res
->target
== PIPE_TEXTURE_2D
||
301 info
->src
.res
->target
== PIPE_TEXTURE_2D_ARRAY
);
303 /* check if the resolve box is valid */
304 assert(info
->dst
.x0
< info
->dst
.x1
);
305 assert(info
->dst
.y0
< info
->dst
.y1
);
307 /* scaled resolve isn't allowed */
308 assert(abs(info
->dst
.x0
- info
->dst
.x1
) ==
309 abs(info
->src
.x0
- info
->src
.x1
));
310 assert(abs(info
->dst
.y0
- info
->dst
.y1
) ==
311 abs(info
->src
.y0
- info
->src
.y1
));
313 if ((info
->mask
& PIPE_MASK_ZS
) ||
314 util_format_is_pure_integer(info
->src
.res
->format
)) {
315 r600_copy_first_sample(ctx
, info
);
319 static void r600_clear(struct pipe_context
*ctx
, unsigned buffers
,
320 const union pipe_color_union
*color
,
321 double depth
, unsigned stencil
)
323 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
324 struct pipe_framebuffer_state
*fb
= &rctx
->framebuffer
;
326 r600_blitter_begin(ctx
, R600_CLEAR
);
327 util_blitter_clear(rctx
->blitter
, fb
->width
, fb
->height
,
328 fb
->nr_cbufs
, buffers
, fb
->nr_cbufs
? fb
->cbufs
[0]->format
: PIPE_FORMAT_NONE
,
329 color
, depth
, stencil
);
330 r600_blitter_end(ctx
);
333 static void r600_clear_render_target(struct pipe_context
*ctx
,
334 struct pipe_surface
*dst
,
335 const union pipe_color_union
*color
,
336 unsigned dstx
, unsigned dsty
,
337 unsigned width
, unsigned height
)
339 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
341 r600_blitter_begin(ctx
, R600_CLEAR_SURFACE
);
342 util_blitter_clear_render_target(rctx
->blitter
, dst
, color
,
343 dstx
, dsty
, width
, height
);
344 r600_blitter_end(ctx
);
347 static void r600_clear_depth_stencil(struct pipe_context
*ctx
,
348 struct pipe_surface
*dst
,
349 unsigned clear_flags
,
352 unsigned dstx
, unsigned dsty
,
353 unsigned width
, unsigned height
)
355 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
357 r600_blitter_begin(ctx
, R600_CLEAR_SURFACE
);
358 util_blitter_clear_depth_stencil(rctx
->blitter
, dst
, clear_flags
, depth
, stencil
,
359 dstx
, dsty
, width
, height
);
360 r600_blitter_end(ctx
);
363 void r600_copy_buffer(struct pipe_context
*ctx
, struct
364 pipe_resource
*dst
, unsigned dstx
,
365 struct pipe_resource
*src
, const struct pipe_box
*src_box
)
367 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
369 if (rctx
->screen
->has_streamout
&&
370 /* Require dword alignment. */
371 dstx
% 4 == 0 && src_box
->x
% 4 == 0 && src_box
->width
% 4 == 0) {
372 r600_blitter_begin(ctx
, R600_COPY_BUFFER
);
373 util_blitter_copy_buffer(rctx
->blitter
, dst
, dstx
, src
, src_box
->x
, src_box
->width
);
374 r600_blitter_end(ctx
);
376 util_resource_copy_region(ctx
, dst
, 0, dstx
, 0, 0, src
, 0, src_box
);
380 struct texture_orig_info
{
390 static void r600_compressed_to_blittable(struct pipe_resource
*tex
,
392 struct texture_orig_info
*orig
)
394 struct r600_resource_texture
*rtex
= (struct r600_resource_texture
*)tex
;
395 unsigned pixsize
= util_format_get_blocksize(rtex
->real_format
);
397 int new_height
, new_width
;
399 orig
->format
= tex
->format
;
400 orig
->width0
= tex
->width0
;
401 orig
->height0
= tex
->height0
;
402 orig
->npix0_x
= rtex
->surface
.level
[0].npix_x
;
403 orig
->npix0_y
= rtex
->surface
.level
[0].npix_y
;
404 orig
->npix_x
= rtex
->surface
.level
[level
].npix_x
;
405 orig
->npix_y
= rtex
->surface
.level
[level
].npix_y
;
408 new_format
= PIPE_FORMAT_R16G16B16A16_UINT
; /* 64-bit block */
410 new_format
= PIPE_FORMAT_R32G32B32A32_UINT
; /* 128-bit block */
412 new_width
= util_format_get_nblocksx(tex
->format
, orig
->width0
);
413 new_height
= util_format_get_nblocksy(tex
->format
, orig
->height0
);
415 tex
->width0
= new_width
;
416 tex
->height0
= new_height
;
417 tex
->format
= new_format
;
418 rtex
->surface
.level
[0].npix_x
= util_format_get_nblocksx(orig
->format
, orig
->npix0_x
);
419 rtex
->surface
.level
[0].npix_y
= util_format_get_nblocksy(orig
->format
, orig
->npix0_y
);
420 rtex
->surface
.level
[level
].npix_x
= util_format_get_nblocksx(orig
->format
, orig
->npix_x
);
421 rtex
->surface
.level
[level
].npix_y
= util_format_get_nblocksy(orig
->format
, orig
->npix_y
);
424 static void r600_change_format(struct pipe_resource
*tex
,
426 struct texture_orig_info
*orig
,
427 enum pipe_format format
)
429 struct r600_resource_texture
*rtex
= (struct r600_resource_texture
*)tex
;
431 orig
->format
= tex
->format
;
432 orig
->width0
= tex
->width0
;
433 orig
->height0
= tex
->height0
;
434 orig
->npix0_x
= rtex
->surface
.level
[0].npix_x
;
435 orig
->npix0_y
= rtex
->surface
.level
[0].npix_y
;
436 orig
->npix_x
= rtex
->surface
.level
[level
].npix_x
;
437 orig
->npix_y
= rtex
->surface
.level
[level
].npix_y
;
439 tex
->format
= format
;
442 static void r600_reset_blittable_to_orig(struct pipe_resource
*tex
,
444 struct texture_orig_info
*orig
)
446 struct r600_resource_texture
*rtex
= (struct r600_resource_texture
*)tex
;
448 tex
->format
= orig
->format
;
449 tex
->width0
= orig
->width0
;
450 tex
->height0
= orig
->height0
;
451 rtex
->surface
.level
[0].npix_x
= orig
->npix0_x
;
452 rtex
->surface
.level
[0].npix_y
= orig
->npix0_y
;
453 rtex
->surface
.level
[level
].npix_x
= orig
->npix_x
;
454 rtex
->surface
.level
[level
].npix_y
= orig
->npix_y
;
457 static void r600_resource_copy_region(struct pipe_context
*ctx
,
458 struct pipe_resource
*dst
,
460 unsigned dstx
, unsigned dsty
, unsigned dstz
,
461 struct pipe_resource
*src
,
463 const struct pipe_box
*src_box
)
465 struct r600_context
*rctx
= (struct r600_context
*)ctx
;
466 struct r600_resource_texture
*rsrc
= (struct r600_resource_texture
*)src
;
467 struct texture_orig_info orig_info
[2];
468 struct pipe_box sbox
;
469 const struct pipe_box
*psbox
= src_box
;
470 boolean restore_orig
[2];
472 memset(orig_info
, 0, sizeof(orig_info
));
474 /* Handle buffers first. */
475 if (dst
->target
== PIPE_BUFFER
&& src
->target
== PIPE_BUFFER
) {
476 r600_copy_buffer(ctx
, dst
, dstx
, src
, src_box
);
480 /* This must be done before entering u_blitter to avoid recursion. */
481 if (rsrc
->is_depth
&& !rsrc
->is_flushing_texture
) {
482 if (!r600_init_flushed_depth_texture(ctx
, src
, NULL
))
485 r600_blit_uncompress_depth(ctx
, rsrc
, NULL
,
486 src_level
, src_level
,
487 src_box
->z
, src_box
->z
+ src_box
->depth
- 1,
488 0, u_max_sample(src
));
491 restore_orig
[0] = restore_orig
[1] = FALSE
;
493 if (util_format_is_compressed(src
->format
) &&
494 util_format_is_compressed(dst
->format
)) {
495 r600_compressed_to_blittable(src
, src_level
, &orig_info
[0]);
496 restore_orig
[0] = TRUE
;
497 sbox
.x
= util_format_get_nblocksx(orig_info
[0].format
, src_box
->x
);
498 sbox
.y
= util_format_get_nblocksy(orig_info
[0].format
, src_box
->y
);
500 sbox
.width
= util_format_get_nblocksx(orig_info
[0].format
, src_box
->width
);
501 sbox
.height
= util_format_get_nblocksy(orig_info
[0].format
, src_box
->height
);
502 sbox
.depth
= src_box
->depth
;
505 r600_compressed_to_blittable(dst
, dst_level
, &orig_info
[1]);
506 restore_orig
[1] = TRUE
;
507 /* translate the dst box as well */
508 dstx
= util_format_get_nblocksx(orig_info
[1].format
, dstx
);
509 dsty
= util_format_get_nblocksy(orig_info
[1].format
, dsty
);
510 } else if (!util_blitter_is_copy_supported(rctx
->blitter
, dst
, src
,
512 unsigned blocksize
= util_format_get_blocksize(src
->format
);
516 r600_change_format(src
, src_level
, &orig_info
[0],
517 PIPE_FORMAT_R8_UNORM
);
518 r600_change_format(dst
, dst_level
, &orig_info
[1],
519 PIPE_FORMAT_R8_UNORM
);
522 r600_change_format(src
, src_level
, &orig_info
[0],
523 PIPE_FORMAT_R8G8B8A8_UNORM
);
524 r600_change_format(dst
, dst_level
, &orig_info
[1],
525 PIPE_FORMAT_R8G8B8A8_UNORM
);
528 fprintf(stderr
, "Unhandled format %s with blocksize %u\n",
529 util_format_short_name(src
->format
), blocksize
);
532 restore_orig
[0] = TRUE
;
533 restore_orig
[1] = TRUE
;
536 r600_blitter_begin(ctx
, R600_COPY_TEXTURE
);
537 util_blitter_copy_texture(rctx
->blitter
, dst
, dst_level
, ~0, dstx
, dsty
, dstz
,
538 src
, src_level
, 0, psbox
);
539 r600_blitter_end(ctx
);
542 r600_reset_blittable_to_orig(src
, src_level
, &orig_info
[0]);
545 r600_reset_blittable_to_orig(dst
, dst_level
, &orig_info
[1]);
548 void r600_init_blit_functions(struct r600_context
*rctx
)
550 rctx
->context
.clear
= r600_clear
;
551 rctx
->context
.clear_render_target
= r600_clear_render_target
;
552 rctx
->context
.clear_depth_stencil
= r600_clear_depth_stencil
;
553 rctx
->context
.resource_copy_region
= r600_resource_copy_region
;
554 rctx
->context
.resource_resolve
= r600_resource_resolve
;