Home
last modified time | relevance | path

Searched refs:r300 (Results 1 – 25 of 39) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/r300/
Dr300_context.c42 static void r300_release_referenced_objects(struct r300_context *r300) in r300_release_referenced_objects() argument
45 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_release_referenced_objects()
47 (struct r300_textures_state*)r300->textures_state.state; in r300_release_referenced_objects()
59 if (r300->texkill_sampler) { in r300_release_referenced_objects()
61 (struct pipe_sampler_view**)&r300->texkill_sampler, in r300_release_referenced_objects()
66 pipe_resource_reference(&r300->dummy_vb.buffer, NULL); in r300_release_referenced_objects()
67 pb_reference(&r300->vbo, NULL); in r300_release_referenced_objects()
69 r300->context.delete_depth_stencil_alpha_state(&r300->context, in r300_release_referenced_objects()
70 r300->dsa_decompress_zmask); in r300_release_referenced_objects()
75 struct r300_context* r300 = r300_context(context); in r300_destroy_context() local
[all …]
Dr300_blit.c53 static void r300_blitter_begin(struct r300_context* r300, enum r300_blitter_op op) in r300_blitter_begin() argument
55 if ((op & R300_STOP_QUERY) && r300->query_current) { in r300_blitter_begin()
56 r300->blitter_saved_query = r300->query_current; in r300_blitter_begin()
57 r300_stop_query(r300); in r300_blitter_begin()
63 util_blitter_save_blend(r300->blitter, r300->blend_state.state); in r300_blitter_begin()
64 util_blitter_save_depth_stencil_alpha(r300->blitter, r300->dsa_state.state); in r300_blitter_begin()
65 util_blitter_save_stencil_ref(r300->blitter, &(r300->stencil_ref)); in r300_blitter_begin()
66 util_blitter_save_rasterizer(r300->blitter, r300->rs_state.state); in r300_blitter_begin()
67 util_blitter_save_fragment_shader(r300->blitter, r300->fs.state); in r300_blitter_begin()
68 util_blitter_save_vertex_shader(r300->blitter, r300->vs_state.state); in r300_blitter_begin()
[all …]
Dr300_flush.c37 static void r300_flush_and_cleanup(struct r300_context *r300, unsigned flags, in r300_flush_and_cleanup() argument
42 r300_emit_hyperz_end(r300); in r300_flush_and_cleanup()
43 r300_emit_query_end(r300); in r300_flush_and_cleanup()
44 if (r300->screen->caps.is_r500) in r300_flush_and_cleanup()
45 r500_emit_index_bias(r300, 0); in r300_flush_and_cleanup()
49 CS_LOCALS(r300); in r300_flush_and_cleanup()
55 r300->flush_counter++; in r300_flush_and_cleanup()
56 r300->rws->cs_flush(r300->cs, flags, fence); in r300_flush_and_cleanup()
57 r300->dirty_hw = 0; in r300_flush_and_cleanup()
60 foreach_atom(r300, atom) { in r300_flush_and_cleanup()
[all …]
Dr300_render.c71 static uint32_t r300_provoking_vertex_fixes(struct r300_context *r300, in r300_provoking_vertex_fixes() argument
74 struct r300_rs_state* rs = (struct r300_rs_state*)r300->rs_state.state; in r300_provoking_vertex_fixes()
116 void r500_emit_index_bias(struct r300_context *r300, int index_bias) in r500_emit_index_bias() argument
118 CS_LOCALS(r300); in r500_emit_index_bias()
126 static void r300_emit_draw_init(struct r300_context *r300, unsigned mode, in r300_emit_draw_init() argument
129 CS_LOCALS(r300); in r300_emit_draw_init()
135 r300_provoking_vertex_fixes(r300, mode)); in r300_emit_draw_init()
148 static void r300_split_index_bias(struct r300_context *r300, int index_bias, in r300_split_index_bias() argument
151 struct pipe_vertex_buffer *vb, *vbufs = r300->vertex_buffer; in r300_split_index_bias()
152 struct pipe_vertex_element *velem = r300->velems->velem; in r300_split_index_bias()
[all …]
Dr300_emit.h33 void r300_emit_vertex_arrays(struct r300_context* r300, int offset,
36 void r300_emit_blend_state(struct r300_context* r300,
39 void r300_emit_blend_color_state(struct r300_context* r300,
42 void r300_emit_clip_state(struct r300_context* r300,
45 void r300_emit_dsa_state(struct r300_context* r300,
48 void r300_emit_hyperz_state(struct r300_context *r300,
51 void r300_emit_hyperz_end(struct r300_context *r300);
53 void r300_emit_fs(struct r300_context* r300, unsigned size, void *state);
55 void r300_emit_fs_constants(struct r300_context* r300, unsigned size, void *state);
57 void r300_emit_fs_rc_constant_state(struct r300_context* r300, unsigned size, void *state);
[all …]
Dr300_render_stencilref.c45 static boolean r300_stencilref_needed(struct r300_context *r300) in r300_stencilref_needed() argument
47 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_needed()
51 r300->stencil_ref.ref_value[0] != r300->stencil_ref.ref_value[1]); in r300_stencilref_needed()
55 static void r300_stencilref_begin(struct r300_context *r300) in r300_stencilref_begin() argument
57 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_begin()
58 struct r300_rs_state *rs = (struct r300_rs_state*)r300->rs_state.state; in r300_stencilref_begin()
59 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_begin()
64 sr->ref_value_front = r300->stencil_ref.ref_value[0]; in r300_stencilref_begin()
69 r300_mark_atom_dirty(r300, &r300->rs_state); in r300_stencilref_begin()
73 static void r300_stencilref_switch_side(struct r300_context *r300) in r300_stencilref_switch_side() argument
[all …]
Dr300_state.c56 r300_mark_atom_dirty(r300, &(atom)); \
535 struct r300_context* r300 = r300_context(pipe); in r300_bind_blend_state() local
537 boolean last_alpha_to_one = r300->alpha_to_one; in r300_bind_blend_state()
538 boolean last_alpha_to_coverage = r300->alpha_to_coverage; in r300_bind_blend_state()
540 UPDATE_STATE(state, r300->blend_state); in r300_bind_blend_state()
545 r300->alpha_to_one = blend->state.alpha_to_one; in r300_bind_blend_state()
546 r300->alpha_to_coverage = blend->state.alpha_to_coverage; in r300_bind_blend_state()
548 if (r300->alpha_to_one != last_alpha_to_one && r300->msaa_enable && in r300_bind_blend_state()
549 r300->fs_status == FRAGMENT_SHADER_VALID) { in r300_bind_blend_state()
550 r300->fs_status = FRAGMENT_SHADER_MAYBE_DIRTY; in r300_bind_blend_state()
[all …]
Dr300_hyperz.c42 static enum r300_hiz_func r300_get_hiz_func(struct r300_context *r300) in r300_get_hiz_func() argument
44 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_hiz_func()
64 static unsigned r300_get_sc_hz_max(struct r300_context *r300) in r300_get_sc_hz_max() argument
66 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_sc_hz_max()
72 static boolean r300_is_hiz_func_valid(struct r300_context *r300) in r300_is_hiz_func_valid() argument
74 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_is_hiz_func_valid()
77 if (r300->hiz_func == HIZ_FUNC_NONE) in r300_is_hiz_func_valid()
81 if (r300->hiz_func == HIZ_FUNC_MAX && in r300_is_hiz_func_valid()
86 if (r300->hiz_func == HIZ_FUNC_MIN && in r300_is_hiz_func_valid()
99 static boolean r300_hiz_allowed(struct r300_context *r300) in r300_hiz_allowed() argument
[all …]
Dr300_emit.c39 void r300_emit_blend_state(struct r300_context* r300, in r300_emit_blend_state() argument
44 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_blend_state()
46 CS_LOCALS(r300); in r300_emit_blend_state()
64 void r300_emit_blend_color_state(struct r300_context* r300, in r300_emit_blend_color_state() argument
68 CS_LOCALS(r300); in r300_emit_blend_color_state()
73 void r300_emit_clip_state(struct r300_context* r300, in r300_emit_clip_state() argument
77 CS_LOCALS(r300); in r300_emit_clip_state()
82 void r300_emit_dsa_state(struct r300_context* r300, unsigned size, void* state) in r300_emit_dsa_state() argument
86 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_dsa_state()
87 boolean is_r500 = r300->screen->caps.is_r500; in r300_emit_dsa_state()
[all …]
Dr300_query.c36 struct r300_context *r300 = r300_context(pipe); in r300_create_query() local
37 struct r300_screen *r300screen = r300->screen; in r300_create_query()
61 q->buf = r300->rws->buffer_create(r300->rws, in r300_create_query()
81 void r300_resume_query(struct r300_context *r300, in r300_resume_query() argument
84 r300->query_current = query; in r300_resume_query()
85 r300_mark_atom_dirty(r300, &r300->query_start); in r300_resume_query()
91 struct r300_context* r300 = r300_context(pipe); in r300_begin_query() local
97 if (r300->query_current != NULL) { in r300_begin_query()
105 r300_resume_query(r300, q); in r300_begin_query()
109 void r300_stop_query(struct r300_context *r300) in r300_stop_query() argument
[all …]
Dr300_state_derived.c53 static void r300_draw_emit_attrib(struct r300_context* r300, in r300_draw_emit_attrib() argument
57 struct r300_vertex_shader* vs = r300->vs_state.state; in r300_draw_emit_attrib()
61 output = draw_find_shader_output(r300->draw, in r300_draw_emit_attrib()
64 draw_emit_vertex_attr(&r300->vertex_info, emit, output); in r300_draw_emit_attrib()
67 static void r300_draw_emit_all_attribs(struct r300_context* r300) in r300_draw_emit_all_attribs() argument
69 struct r300_vertex_shader* vs = r300->vs_state.state; in r300_draw_emit_all_attribs()
75 r300_draw_emit_attrib(r300, EMIT_4F, vs_outputs->pos); in r300_draw_emit_all_attribs()
82 r300_draw_emit_attrib(r300, EMIT_1F_PSIZE, vs_outputs->psize); in r300_draw_emit_all_attribs()
88 r300_draw_emit_attrib(r300, EMIT_4F, vs_outputs->color[i]); in r300_draw_emit_all_attribs()
95 r300_draw_emit_attrib(r300, EMIT_4F, vs_outputs->bcolor[i]); in r300_draw_emit_all_attribs()
[all …]
Dr300_context.h641 #define foreach_atom(r300, atom) \ argument
642 for (atom = &r300->gpu_flush; atom != (&r300->query_start)+1; atom++)
644 #define foreach_dirty_atom(r300, atom) \ argument
645 for (atom = r300->first_dirty; atom != r300->last_dirty; atom++)
668 static inline struct r300_fragment_shader *r300_fs(struct r300_context *r300) in r300_fs() argument
670 return (struct r300_fragment_shader*)r300->fs.state; in r300_fs()
673 static inline void r300_mark_atom_dirty(struct r300_context *r300, in r300_mark_atom_dirty() argument
678 if (!r300->first_dirty) { in r300_mark_atom_dirty()
679 r300->first_dirty = atom; in r300_mark_atom_dirty()
680 r300->last_dirty = atom+1; in r300_mark_atom_dirty()
[all …]
Dr300_screen_buffer.c35 void r300_upload_index_buffer(struct r300_context *r300, in r300_upload_index_buffer() argument
44 u_upload_data(r300->uploader, in r300_upload_index_buffer()
74 struct r300_context *r300 = r300_context(context); in r300_buffer_transfer_map() local
75 struct radeon_winsys *rws = r300->screen->rws; in r300_buffer_transfer_map()
80 transfer = slab_alloc(&r300->pool_transfers); in r300_buffer_transfer_map()
98 if (r300->rws->cs_is_buffer_referenced(r300->cs, rbuf->buf, RADEON_USAGE_READWRITE) || in r300_buffer_transfer_map()
99 !r300->rws->buffer_wait(rbuf->buf, 0, RADEON_USAGE_READWRITE)) { in r300_buffer_transfer_map()
104 new_buf = r300->rws->buffer_create(r300->rws, rbuf->b.b.width0, in r300_buffer_transfer_map()
113 for (i = 0; i < r300->nr_vertex_buffers; i++) { in r300_buffer_transfer_map()
114 if (r300->vertex_buffer[i].buffer == &rbuf->b.b) { in r300_buffer_transfer_map()
[all …]
Dr300_resource.c41 void r300_init_resource_functions(struct r300_context *r300) in r300_init_resource_functions() argument
43 r300->context.transfer_map = u_transfer_map_vtbl; in r300_init_resource_functions()
44 r300->context.transfer_flush_region = u_default_transfer_flush_region; in r300_init_resource_functions()
45 r300->context.transfer_unmap = u_transfer_unmap_vtbl; in r300_init_resource_functions()
46 r300->context.buffer_subdata = u_default_buffer_subdata; in r300_init_resource_functions()
47 r300->context.texture_subdata = u_default_texture_subdata; in r300_init_resource_functions()
48 r300->context.create_surface = r300_create_surface; in r300_init_resource_functions()
49 r300->context.surface_destroy = r300_surface_destroy; in r300_init_resource_functions()
Dr300_fs.c146 struct r300_context* r300, in get_external_state() argument
149 struct r300_textures_state *texstate = r300->textures_state.state; in get_external_state()
152 state->alpha_to_one = r300->alpha_to_one && r300->msaa_enable; in get_external_state()
209 struct r300_context* r300,
214 struct r300_context* r300, in r300_dummy_fragment_shader() argument
233 r300_translate_fragment_shader(r300, shader, state.tokens); in r300_dummy_fragment_shader()
239 struct r300_context *r300, in r300_emit_fs_code_to_buffer() argument
250 if (r300->screen->caps.is_r500) { in r300_emit_fs_code_to_buffer()
298 struct r300_fragment_program_code *code = &generic_code->code.r300; in r300_emit_fs_code_to_buffer()
310 (r300->screen->caps.is_r400 ? 2 * (iterations + 1): 0) + in r300_emit_fs_code_to_buffer()
[all …]
Dr300_vs.c39 struct r300_context *r300, in r300_shader_read_vs_outputs() argument
91 if (r300->screen->caps.has_tcl) { in r300_shader_read_vs_outputs()
173 void r300_init_vs_outputs(struct r300_context *r300, in r300_init_vs_outputs() argument
177 r300_shader_read_vs_outputs(r300, &vs->info, &vs->outputs); in r300_init_vs_outputs()
181 struct r300_context* r300, in r300_dummy_vertex_shader() argument
201 r300_init_vs_outputs(r300, shader); in r300_dummy_vertex_shader()
202 r300_translate_vertex_shader(r300, shader); in r300_dummy_vertex_shader()
205 void r300_translate_vertex_shader(struct r300_context *r300, in r300_translate_vertex_shader() argument
216 DBG_ON(r300, DBG_VP) ? compiler.Base.Debug |= RC_DBG_LOG : 0; in r300_translate_vertex_shader()
217 DBG_ON(r300, DBG_P_STAT) ? compiler.Base.Debug |= RC_DBG_STATS : 0; in r300_translate_vertex_shader()
[all …]
Dr300_render_translate.c28 void r300_translate_index_buffer(struct r300_context *r300, in r300_translate_index_buffer() argument
40 u_upload_alloc(r300->uploader, 0, count * 2, 4, in r300_translate_index_buffer()
44 &r300->context, ib, PIPE_TRANSFER_UNSYNCHRONIZED, index_offset, in r300_translate_index_buffer()
54 u_upload_alloc(r300->uploader, 0, count * 2, 4, in r300_translate_index_buffer()
57 util_rebuild_ushort_elts_to_userptr(&r300->context, ib, in r300_translate_index_buffer()
69 u_upload_alloc(r300->uploader, 0, count * 4, 4, in r300_translate_index_buffer()
72 util_rebuild_uint_elts_to_userptr(&r300->context, ib, in r300_translate_index_buffer()
Dr300_transfer.c110 struct r300_context *r300 = r300_context(ctx); in r300_texture_transfer_map() local
118 r300->rws->cs_is_buffer_referenced(r300->cs, tex->buf, RADEON_USAGE_READWRITE); in r300_texture_transfer_map()
123 !r300->rws->buffer_wait(tex->buf, 0, RADEON_USAGE_READWRITE); in r300_texture_transfer_map()
142 if (r300->blitter->running) { in r300_texture_transfer_map()
221 map = r300->rws->buffer_map(trans->linear_texture->buf, in r300_texture_transfer_map()
222 r300->cs, usage); in r300_texture_transfer_map()
233 map = r300->rws->buffer_map(tex->buf, r300->cs, usage); in r300_texture_transfer_map()
Dr300_vs.h59 void r300_init_vs_outputs(struct r300_context *r300,
62 void r300_translate_vertex_shader(struct r300_context *r300,
65 void r300_draw_init_vertex_shader(struct r300_context *r300,
DAutomake.inc3 TARGET_DRIVERS += r300
6 $(top_builddir)/src/gallium/drivers/r300/libr300.la \
Dr300_screen_buffer.h39 void r300_upload_index_buffer(struct r300_context *r300,
Dr300_vs_draw.c311 void r300_draw_init_vertex_shader(struct r300_context *r300, in r300_draw_init_vertex_shader() argument
314 struct draw_context *draw = r300->draw; in r300_draw_init_vertex_shader()
372 r300_init_vs_outputs(r300, vs); in r300_draw_init_vertex_shader()
Dr300_fs.h78 boolean r300_pick_fragment_shader(struct r300_context* r300);
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_code.h246 struct r300_fragment_program_code r300; member
290 uint32_t r300[R300_VS_MAX_FC_OPS]; member
/external/mesa3d/src/gallium/docs/source/
Ddistro.rst41 ATI r300
44 Driver for the ATI/AMD r300, r400, and r500 families of GPUs.

12