2 * Mesa 3-D graphics library
4 * Copyright (C) 2012-2013 LunarG, Inc.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
25 * Chia-I Wu <olv@lunarg.com>
28 #include "util/u_prim.h"
29 #include "intel_winsys.h"
31 #include "ilo_3d_pipeline.h"
33 #include "ilo_context.h"
35 #include "ilo_query.h"
36 #include "ilo_shader.h"
37 #include "ilo_state.h"
41 process_query_for_occlusion_counter(struct ilo_3d
*hw3d
,
44 uint64_t *vals
, depth_count
= 0;
48 assert(q
->reg_read
% 2 == 0);
50 vals
= intel_bo_map(q
->bo
, false);
51 for (i
= 1; i
< q
->reg_read
; i
+= 2)
52 depth_count
+= vals
[i
] - vals
[i
- 1];
53 intel_bo_unmap(q
->bo
);
55 /* accumulate so that the query can be resumed if wanted */
56 q
->data
.u64
+= depth_count
;
61 timestamp_to_ns(uint64_t timestamp
)
63 /* see ilo_get_timestamp() */
64 return (timestamp
& 0xffffffff) * 80;
68 process_query_for_timestamp(struct ilo_3d
*hw3d
, struct ilo_query
*q
)
70 uint64_t *vals
, timestamp
;
72 assert(q
->reg_read
== 1);
74 vals
= intel_bo_map(q
->bo
, false);
76 intel_bo_unmap(q
->bo
);
78 q
->data
.u64
= timestamp_to_ns(timestamp
);
83 process_query_for_time_elapsed(struct ilo_3d
*hw3d
, struct ilo_query
*q
)
85 uint64_t *vals
, elapsed
= 0;
89 assert(q
->reg_read
% 2 == 0);
91 vals
= intel_bo_map(q
->bo
, false);
93 for (i
= 1; i
< q
->reg_read
; i
+= 2)
94 elapsed
+= vals
[i
] - vals
[i
- 1];
96 intel_bo_unmap(q
->bo
);
98 /* accumulate so that the query can be resumed if wanted */
99 q
->data
.u64
+= timestamp_to_ns(elapsed
);
104 ilo_3d_resume_queries(struct ilo_3d
*hw3d
)
108 /* resume occlusion queries */
109 LIST_FOR_EACH_ENTRY(q
, &hw3d
->occlusion_queries
, list
) {
110 /* accumulate the result if the bo is alreay full */
111 if (q
->reg_read
>= q
->reg_total
)
112 process_query_for_occlusion_counter(hw3d
, q
);
114 ilo_3d_pipeline_emit_write_depth_count(hw3d
->pipeline
,
115 q
->bo
, q
->reg_read
++);
118 /* resume timer queries */
119 LIST_FOR_EACH_ENTRY(q
, &hw3d
->time_elapsed_queries
, list
) {
120 /* accumulate the result if the bo is alreay full */
121 if (q
->reg_read
>= q
->reg_total
)
122 process_query_for_time_elapsed(hw3d
, q
);
124 ilo_3d_pipeline_emit_write_timestamp(hw3d
->pipeline
,
125 q
->bo
, q
->reg_read
++);
130 ilo_3d_pause_queries(struct ilo_3d
*hw3d
)
134 /* pause occlusion queries */
135 LIST_FOR_EACH_ENTRY(q
, &hw3d
->occlusion_queries
, list
) {
136 assert(q
->reg_read
< q
->reg_total
);
137 ilo_3d_pipeline_emit_write_depth_count(hw3d
->pipeline
,
138 q
->bo
, q
->reg_read
++);
141 /* pause timer queries */
142 LIST_FOR_EACH_ENTRY(q
, &hw3d
->time_elapsed_queries
, list
) {
143 assert(q
->reg_read
< q
->reg_total
);
144 ilo_3d_pipeline_emit_write_timestamp(hw3d
->pipeline
,
145 q
->bo
, q
->reg_read
++);
150 ilo_3d_release_render_ring(struct ilo_cp
*cp
, void *data
)
152 struct ilo_3d
*hw3d
= data
;
154 ilo_3d_pause_queries(hw3d
);
158 ilo_3d_own_render_ring(struct ilo_3d
*hw3d
)
160 ilo_cp_set_ring(hw3d
->cp
, INTEL_RING_RENDER
);
162 if (ilo_cp_set_owner(hw3d
->cp
, &hw3d
->owner
, hw3d
->owner_reserve
))
163 ilo_3d_resume_queries(hw3d
);
170 ilo_3d_begin_query(struct ilo_context
*ilo
, struct ilo_query
*q
)
172 struct ilo_3d
*hw3d
= ilo
->hw3d
;
174 ilo_3d_own_render_ring(hw3d
);
177 case PIPE_QUERY_OCCLUSION_COUNTER
:
178 /* reserve some space for pausing the query */
179 q
->reg_cmd_size
= ilo_3d_pipeline_estimate_size(hw3d
->pipeline
,
180 ILO_3D_PIPELINE_WRITE_DEPTH_COUNT
, NULL
);
181 hw3d
->owner_reserve
+= q
->reg_cmd_size
;
182 ilo_cp_set_owner(hw3d
->cp
, &hw3d
->owner
, hw3d
->owner_reserve
);
186 if (ilo_query_alloc_bo(q
, 2, -1, hw3d
->cp
->winsys
)) {
187 /* XXX we should check the aperture size */
188 ilo_3d_pipeline_emit_write_depth_count(hw3d
->pipeline
,
189 q
->bo
, q
->reg_read
++);
191 list_add(&q
->list
, &hw3d
->occlusion_queries
);
194 case PIPE_QUERY_TIMESTAMP
:
197 case PIPE_QUERY_TIME_ELAPSED
:
198 /* reserve some space for pausing the query */
199 q
->reg_cmd_size
= ilo_3d_pipeline_estimate_size(hw3d
->pipeline
,
200 ILO_3D_PIPELINE_WRITE_TIMESTAMP
, NULL
);
201 hw3d
->owner_reserve
+= q
->reg_cmd_size
;
202 ilo_cp_set_owner(hw3d
->cp
, &hw3d
->owner
, hw3d
->owner_reserve
);
206 if (ilo_query_alloc_bo(q
, 2, -1, hw3d
->cp
->winsys
)) {
207 /* XXX we should check the aperture size */
208 ilo_3d_pipeline_emit_write_timestamp(hw3d
->pipeline
,
209 q
->bo
, q
->reg_read
++);
211 list_add(&q
->list
, &hw3d
->time_elapsed_queries
);
214 case PIPE_QUERY_PRIMITIVES_GENERATED
:
216 list_add(&q
->list
, &hw3d
->prim_generated_queries
);
218 case PIPE_QUERY_PRIMITIVES_EMITTED
:
220 list_add(&q
->list
, &hw3d
->prim_emitted_queries
);
223 assert(!"unknown query type");
232 ilo_3d_end_query(struct ilo_context
*ilo
, struct ilo_query
*q
)
234 struct ilo_3d
*hw3d
= ilo
->hw3d
;
236 ilo_3d_own_render_ring(hw3d
);
239 case PIPE_QUERY_OCCLUSION_COUNTER
:
242 assert(q
->reg_read
< q
->reg_total
);
243 hw3d
->owner_reserve
-= q
->reg_cmd_size
;
244 ilo_cp_set_owner(hw3d
->cp
, &hw3d
->owner
, hw3d
->owner_reserve
);
245 ilo_3d_pipeline_emit_write_depth_count(hw3d
->pipeline
,
246 q
->bo
, q
->reg_read
++);
248 case PIPE_QUERY_TIMESTAMP
:
251 if (ilo_query_alloc_bo(q
, 1, 1, hw3d
->cp
->winsys
)) {
252 ilo_3d_pipeline_emit_write_timestamp(hw3d
->pipeline
,
253 q
->bo
, q
->reg_read
++);
256 case PIPE_QUERY_TIME_ELAPSED
:
259 assert(q
->reg_read
< q
->reg_total
);
260 hw3d
->owner_reserve
-= q
->reg_cmd_size
;
261 ilo_cp_set_owner(hw3d
->cp
, &hw3d
->owner
, hw3d
->owner_reserve
);
262 ilo_3d_pipeline_emit_write_timestamp(hw3d
->pipeline
,
263 q
->bo
, q
->reg_read
++);
265 case PIPE_QUERY_PRIMITIVES_GENERATED
:
266 case PIPE_QUERY_PRIMITIVES_EMITTED
:
270 assert(!"unknown query type");
276 * Process the raw query data.
279 ilo_3d_process_query(struct ilo_context
*ilo
, struct ilo_query
*q
)
281 struct ilo_3d
*hw3d
= ilo
->hw3d
;
284 case PIPE_QUERY_OCCLUSION_COUNTER
:
286 process_query_for_occlusion_counter(hw3d
, q
);
288 case PIPE_QUERY_TIMESTAMP
:
290 process_query_for_timestamp(hw3d
, q
);
292 case PIPE_QUERY_TIME_ELAPSED
:
294 process_query_for_time_elapsed(hw3d
, q
);
296 case PIPE_QUERY_PRIMITIVES_GENERATED
:
297 case PIPE_QUERY_PRIMITIVES_EMITTED
:
300 assert(!"unknown query type");
306 * Hook for CP new-batch.
309 ilo_3d_cp_flushed(struct ilo_3d
*hw3d
)
311 if (ilo_debug
& ILO_DEBUG_3D
)
312 ilo_3d_pipeline_dump(hw3d
->pipeline
);
314 /* invalidate the pipeline */
315 ilo_3d_pipeline_invalidate(hw3d
->pipeline
,
316 ILO_3D_PIPELINE_INVALIDATE_BATCH_BO
|
317 ILO_3D_PIPELINE_INVALIDATE_STATE_BO
);
318 if (!hw3d
->cp
->render_ctx
) {
319 ilo_3d_pipeline_invalidate(hw3d
->pipeline
,
320 ILO_3D_PIPELINE_INVALIDATE_HW
);
323 hw3d
->new_batch
= true;
327 * Create a 3D context.
330 ilo_3d_create(struct ilo_cp
*cp
, const struct ilo_dev_info
*dev
)
334 hw3d
= CALLOC_STRUCT(ilo_3d
);
339 hw3d
->owner
.release_callback
= ilo_3d_release_render_ring
;
340 hw3d
->owner
.release_data
= hw3d
;
342 hw3d
->new_batch
= true;
344 list_inithead(&hw3d
->occlusion_queries
);
345 list_inithead(&hw3d
->time_elapsed_queries
);
346 list_inithead(&hw3d
->prim_generated_queries
);
347 list_inithead(&hw3d
->prim_emitted_queries
);
349 hw3d
->pipeline
= ilo_3d_pipeline_create(cp
, dev
);
350 if (!hw3d
->pipeline
) {
359 * Destroy a 3D context.
362 ilo_3d_destroy(struct ilo_3d
*hw3d
)
364 ilo_3d_pipeline_destroy(hw3d
->pipeline
);
367 intel_bo_unreference(hw3d
->kernel
.bo
);
373 draw_vbo(struct ilo_3d
*hw3d
, const struct ilo_context
*ilo
,
374 int *prim_generated
, int *prim_emitted
)
376 bool need_flush
= false;
379 ilo_3d_own_render_ring(hw3d
);
381 if (!hw3d
->new_batch
) {
383 * Without a better tracking mechanism, when the framebuffer changes, we
384 * have to assume that the old framebuffer may be sampled from. If that
385 * happens in the middle of a batch buffer, we need to insert manual
388 need_flush
= (ilo
->dirty
& ILO_DIRTY_FB
);
390 /* same to SO target changes */
391 need_flush
|= (ilo
->dirty
& ILO_DIRTY_SO
);
394 /* make sure there is enough room first */
395 max_len
= ilo_3d_pipeline_estimate_size(hw3d
->pipeline
,
396 ILO_3D_PIPELINE_DRAW
, ilo
);
398 max_len
+= ilo_3d_pipeline_estimate_size(hw3d
->pipeline
,
399 ILO_3D_PIPELINE_FLUSH
, NULL
);
402 if (max_len
> ilo_cp_space(hw3d
->cp
)) {
403 ilo_cp_flush(hw3d
->cp
, "out of space");
405 assert(max_len
<= ilo_cp_space(hw3d
->cp
));
409 ilo_3d_pipeline_emit_flush(hw3d
->pipeline
);
411 return ilo_3d_pipeline_emit_draw(hw3d
->pipeline
, ilo
,
412 prim_generated
, prim_emitted
);
416 update_prim_count(struct ilo_3d
*hw3d
, int generated
, int emitted
)
420 LIST_FOR_EACH_ENTRY(q
, &hw3d
->prim_generated_queries
, list
)
421 q
->data
.u64
+= generated
;
423 LIST_FOR_EACH_ENTRY(q
, &hw3d
->prim_emitted_queries
, list
)
424 q
->data
.u64
+= emitted
;
428 ilo_3d_pass_render_condition(struct ilo_context
*ilo
)
430 struct ilo_3d
*hw3d
= ilo
->hw3d
;
434 if (!hw3d
->render_condition
.query
)
437 switch (hw3d
->render_condition
.mode
) {
438 case PIPE_RENDER_COND_WAIT
:
439 case PIPE_RENDER_COND_BY_REGION_WAIT
:
442 case PIPE_RENDER_COND_NO_WAIT
:
443 case PIPE_RENDER_COND_BY_REGION_NO_WAIT
:
449 if (ilo
->base
.get_query_result(&ilo
->base
, hw3d
->render_condition
.query
,
450 wait
, (union pipe_query_result
*) &result
))
451 return (!result
== hw3d
->render_condition
.cond
);
456 #define UPDATE_MIN2(a, b) (a) = MIN2((a), (b))
457 #define UPDATE_MAX2(a, b) (a) = MAX2((a), (b))
460 * \see find_sub_primitives() from core mesa
463 ilo_find_sub_primitives(const void *elements
, unsigned element_size
,
464 const struct pipe_draw_info
*orig_info
,
465 struct pipe_draw_info
*info
)
467 const unsigned max_prims
= orig_info
->count
- orig_info
->start
;
468 unsigned i
, cur_start
, cur_count
;
472 cur_start
= orig_info
->start
;
476 #define IB_INDEX_READ(TYPE, INDEX) (((const TYPE *) elements)[INDEX])
478 #define SCAN_ELEMENTS(TYPE) \
479 info[scan_num] = *orig_info; \
480 info[scan_num].primitive_restart = false; \
481 for (i = orig_info->start; i < orig_info->count; i++) { \
482 scan_index = IB_INDEX_READ(TYPE, i); \
483 if (scan_index == orig_info->restart_index) { \
484 if (cur_count > 0) { \
485 assert(scan_num < max_prims); \
486 info[scan_num].start = cur_start; \
487 info[scan_num].count = cur_count; \
489 info[scan_num] = *orig_info; \
490 info[scan_num].primitive_restart = false; \
496 UPDATE_MIN2(info[scan_num].min_index, scan_index); \
497 UPDATE_MAX2(info[scan_num].max_index, scan_index); \
501 if (cur_count > 0) { \
502 assert(scan_num < max_prims); \
503 info[scan_num].start = cur_start; \
504 info[scan_num].count = cur_count; \
508 switch (element_size
) {
510 SCAN_ELEMENTS(uint8_t);
513 SCAN_ELEMENTS(uint16_t);
516 SCAN_ELEMENTS(uint32_t);
519 assert(0 && "bad index_size in find_sub_primitives()");
528 ilo_check_restart_index(const struct ilo_context
*ilo
, unsigned restart_index
)
531 * Haswell (GEN(7.5)) supports an arbitrary cut index, check everything
534 if (ilo
->dev
->gen
>= ILO_GEN(7.5))
537 /* Note: indices must be unsigned byte, unsigned short or unsigned int */
538 switch (ilo
->ib
.index_size
) {
540 return ((restart_index
& 0xff) == 0xff);
543 return ((restart_index
& 0xffff) == 0xffff);
546 return (restart_index
== 0xffffffff);
553 ilo_check_restart_prim_type(const struct ilo_context
*ilo
, unsigned prim
)
556 case PIPE_PRIM_POINTS
:
557 case PIPE_PRIM_LINES
:
558 case PIPE_PRIM_LINE_STRIP
:
559 case PIPE_PRIM_TRIANGLES
:
560 case PIPE_PRIM_TRIANGLE_STRIP
:
561 /* All 965 GEN graphics support a cut index for these primitive types */
565 case PIPE_PRIM_LINE_LOOP
:
566 case PIPE_PRIM_POLYGON
:
567 case PIPE_PRIM_QUAD_STRIP
:
568 case PIPE_PRIM_QUADS
:
569 case PIPE_PRIM_TRIANGLE_FAN
:
570 if (ilo
->dev
->gen
>= ILO_GEN(7.5)) {
571 /* Haswell and newer parts can handle these prim types. */
581 * Handle VBOs using primitive restart.
582 * Verify that restart index and primitive type can be handled by the HW.
583 * Return true if this routine did the rendering
584 * Return false if this routine did NOT render because restart can be handled
588 ilo_draw_vbo_with_sw_restart(struct pipe_context
*pipe
,
589 const struct pipe_draw_info
*info
)
591 struct ilo_context
*ilo
= ilo_context(pipe
);
592 struct pipe_draw_info
*restart_info
= NULL
;
593 int sub_prim_count
= 1;
596 * We have to break up the primitive into chunks manually
597 * Worst case, every other index could be a restart index so
598 * need to have space for that many primitives
600 restart_info
= MALLOC(((info
->count
+ 1) / 2) * sizeof(*info
));
601 if (NULL
== restart_info
) {
602 /* If we can't get memory for this, bail out */
603 ilo_err("%s:%d - Out of memory", __FILE__
, __LINE__
);
607 if (ilo
->ib
.buffer
) {
608 struct pipe_transfer
*transfer
;
611 map
= pipe_buffer_map(pipe
, ilo
->ib
.buffer
,
612 PIPE_TRANSFER_READ
, &transfer
);
614 sub_prim_count
= ilo_find_sub_primitives(map
+ ilo
->ib
.offset
,
615 ilo
->ib
.index_size
, info
, restart_info
);
617 pipe_buffer_unmap(pipe
, transfer
);
620 sub_prim_count
= ilo_find_sub_primitives(ilo
->ib
.user_buffer
,
621 ilo
->ib
.index_size
, info
, restart_info
);
626 while (sub_prim_count
> 0) {
627 pipe
->draw_vbo(pipe
, info
);
637 upload_shaders(struct ilo_3d
*hw3d
, struct ilo_shader_cache
*shc
)
639 bool incremental
= true;
642 upload
= ilo_shader_cache_upload(shc
,
643 NULL
, hw3d
->kernel
.used
, incremental
);
648 * Allocate a new bo. When this is a new batch, assume the bo is still in
649 * use by the previous batch and force allocation.
651 * Does it help to make shader cache upload with unsynchronized mapping,
652 * and remove the check for new batch here?
654 if (hw3d
->kernel
.used
+ upload
> hw3d
->kernel
.size
|| hw3d
->new_batch
) {
655 unsigned new_size
= (hw3d
->kernel
.size
) ?
656 hw3d
->kernel
.size
: (8 * 1024);
658 while (hw3d
->kernel
.used
+ upload
> new_size
)
662 intel_bo_unreference(hw3d
->kernel
.bo
);
664 hw3d
->kernel
.bo
= intel_winsys_alloc_buffer(hw3d
->cp
->winsys
,
665 "kernel bo", new_size
, INTEL_DOMAIN_CPU
);
666 if (!hw3d
->kernel
.bo
) {
667 ilo_err("failed to allocate kernel bo\n");
671 hw3d
->kernel
.used
= 0;
672 hw3d
->kernel
.size
= new_size
;
675 assert(new_size
>= ilo_shader_cache_upload(shc
,
676 NULL
, hw3d
->kernel
.used
, incremental
));
678 ilo_3d_pipeline_invalidate(hw3d
->pipeline
,
679 ILO_3D_PIPELINE_INVALIDATE_KERNEL_BO
);
682 upload
= ilo_shader_cache_upload(shc
,
683 hw3d
->kernel
.bo
, hw3d
->kernel
.used
, incremental
);
685 ilo_err("failed to upload shaders\n");
689 hw3d
->kernel
.used
+= upload
;
691 assert(hw3d
->kernel
.used
<= hw3d
->kernel
.size
);
697 ilo_draw_vbo(struct pipe_context
*pipe
, const struct pipe_draw_info
*info
)
699 struct ilo_context
*ilo
= ilo_context(pipe
);
700 struct ilo_3d
*hw3d
= ilo
->hw3d
;
701 int prim_generated
, prim_emitted
;
703 if (ilo_debug
& ILO_DEBUG_DRAW
) {
705 ilo_printf("indexed draw %s: "
706 "index start %d, count %d, vertex range [%d, %d]\n",
707 u_prim_name(info
->mode
), info
->start
, info
->count
,
708 info
->min_index
, info
->max_index
);
711 ilo_printf("draw %s: vertex start %d, count %d\n",
712 u_prim_name(info
->mode
), info
->start
, info
->count
);
715 ilo_dump_dirty_flags(ilo
->dirty
);
718 if (!ilo_3d_pass_render_condition(ilo
))
721 if (info
->primitive_restart
&& info
->indexed
) {
723 * Want to draw an indexed primitive using primitive restart
724 * Check that HW can handle the request and fall to SW if not.
726 if (!ilo_check_restart_index(ilo
, info
->restart_index
) ||
727 !ilo_check_restart_prim_type(ilo
, info
->mode
)) {
728 ilo_draw_vbo_with_sw_restart(pipe
, info
);
733 ilo_finalize_3d_states(ilo
, info
);
735 if (!upload_shaders(hw3d
, ilo
->shader_cache
))
738 ilo_blit_resolve_framebuffer(ilo
);
740 /* If draw_vbo ever fails, return immediately. */
741 if (!draw_vbo(hw3d
, ilo
, &prim_generated
, &prim_emitted
))
744 /* clear dirty status */
746 hw3d
->new_batch
= false;
748 /* avoid dangling pointer reference */
751 update_prim_count(hw3d
, prim_generated
, prim_emitted
);
753 if (ilo_debug
& ILO_DEBUG_NOCACHE
)
754 ilo_3d_pipeline_emit_flush(hw3d
->pipeline
);
758 ilo_render_condition(struct pipe_context
*pipe
,
759 struct pipe_query
*query
,
763 struct ilo_context
*ilo
= ilo_context(pipe
);
764 struct ilo_3d
*hw3d
= ilo
->hw3d
;
766 /* reference count? */
767 hw3d
->render_condition
.query
= query
;
768 hw3d
->render_condition
.mode
= mode
;
769 hw3d
->render_condition
.cond
= condition
;
773 ilo_texture_barrier(struct pipe_context
*pipe
)
775 struct ilo_context
*ilo
= ilo_context(pipe
);
776 struct ilo_3d
*hw3d
= ilo
->hw3d
;
778 if (ilo
->cp
->ring
!= INTEL_RING_RENDER
)
781 ilo_3d_pipeline_emit_flush(hw3d
->pipeline
);
784 if (ilo
->dev
->gen
>= ILO_GEN(7))
785 ilo_cp_flush(hw3d
->cp
, "texture barrier");
789 ilo_get_sample_position(struct pipe_context
*pipe
,
790 unsigned sample_count
,
791 unsigned sample_index
,
794 struct ilo_context
*ilo
= ilo_context(pipe
);
795 struct ilo_3d
*hw3d
= ilo
->hw3d
;
797 ilo_3d_pipeline_get_sample_position(hw3d
->pipeline
,
798 sample_count
, sample_index
,
799 &out_value
[0], &out_value
[1]);
803 * Initialize 3D-related functions.
806 ilo_init_3d_functions(struct ilo_context
*ilo
)
808 ilo
->base
.draw_vbo
= ilo_draw_vbo
;
809 ilo
->base
.render_condition
= ilo_render_condition
;
810 ilo
->base
.texture_barrier
= ilo_texture_barrier
;
811 ilo
->base
.get_sample_position
= ilo_get_sample_position
;