/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_context.c | 39 static void r300_release_referenced_objects(struct r300_context *r300) in r300_release_referenced_objects() argument 42 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_release_referenced_objects() 44 (struct r300_textures_state*)r300->textures_state.state; in r300_release_referenced_objects() 56 if (r300->texkill_sampler) { in r300_release_referenced_objects() 58 (struct pipe_sampler_view**)&r300->texkill_sampler, in r300_release_referenced_objects() 63 pipe_resource_reference(&r300->dummy_vb.buffer, NULL); in r300_release_referenced_objects() 64 pipe_resource_reference(&r300->vbo, NULL); in r300_release_referenced_objects() 66 r300->context.delete_depth_stencil_alpha_state(&r300->context, in r300_release_referenced_objects() 67 r300->dsa_decompress_zmask); in r300_release_referenced_objects() 72 struct r300_context* r300 = r300_context(context); in r300_destroy_context() local [all …]
|
D | r300_blit.c | 48 static void r300_blitter_begin(struct r300_context* r300, enum r300_blitter_op op) in r300_blitter_begin() argument 50 if ((op & R300_STOP_QUERY) && r300->query_current) { in r300_blitter_begin() 51 r300->blitter_saved_query = r300->query_current; in r300_blitter_begin() 52 r300_stop_query(r300); in r300_blitter_begin() 58 util_blitter_save_blend(r300->blitter, r300->blend_state.state); in r300_blitter_begin() 59 util_blitter_save_depth_stencil_alpha(r300->blitter, r300->dsa_state.state); in r300_blitter_begin() 60 util_blitter_save_stencil_ref(r300->blitter, &(r300->stencil_ref)); in r300_blitter_begin() 61 util_blitter_save_rasterizer(r300->blitter, r300->rs_state.state); in r300_blitter_begin() 62 util_blitter_save_fragment_shader(r300->blitter, r300->fs.state); in r300_blitter_begin() 63 util_blitter_save_vertex_shader(r300->blitter, r300->vs_state.state); in r300_blitter_begin() [all …]
|
D | r300_flush.c | 37 static void r300_flush_and_cleanup(struct r300_context *r300, unsigned flags) in r300_flush_and_cleanup() argument 41 r300_emit_hyperz_end(r300); in r300_flush_and_cleanup() 42 r300_emit_query_end(r300); in r300_flush_and_cleanup() 43 if (r300->screen->caps.is_r500) in r300_flush_and_cleanup() 44 r500_emit_index_bias(r300, 0); in r300_flush_and_cleanup() 46 r300->flush_counter++; in r300_flush_and_cleanup() 47 r300->rws->cs_flush(r300->cs, flags); in r300_flush_and_cleanup() 48 r300->dirty_hw = 0; in r300_flush_and_cleanup() 51 foreach_atom(r300, atom) { in r300_flush_and_cleanup() 53 r300_mark_atom_dirty(r300, atom); in r300_flush_and_cleanup() [all …]
|
D | r300_render.c | 71 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 …]
|
D | r300_render_stencilref.c | 45 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 …]
|
D | r300_emit.h | 33 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 …]
|
D | r300_hyperz.c | 42 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 …]
|
D | r300_state.c | 55 r300_mark_atom_dirty(r300, &(atom)); \ 441 struct r300_context* r300 = r300_context(pipe); in r300_bind_blend_state() local 443 UPDATE_STATE(state, r300->blend_state); in r300_bind_blend_state() 464 struct r300_context* r300 = r300_context(pipe); in r300_set_blend_color() local 465 struct pipe_framebuffer_state *fb = r300->fb_state.state; in r300_set_blend_color() 467 (struct r300_blend_color_state*)r300->blend_color_state.state; in r300_set_blend_color() 508 if (r300->screen->caps.is_r500) { in r300_set_blend_color() 537 r300_mark_atom_dirty(r300, &r300->blend_color_state); in r300_set_blend_color() 543 struct r300_context* r300 = r300_context(pipe); in r300_set_clip_state() local 545 (struct r300_clip_state*)r300->clip_state.state; in r300_set_clip_state() [all …]
|
D | r300_emit.c | 39 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() 45 CS_LOCALS(r300); in r300_emit_blend_state() 59 void r300_emit_blend_color_state(struct r300_context* r300, in r300_emit_blend_color_state() argument 63 CS_LOCALS(r300); in r300_emit_blend_color_state() 68 void r300_emit_clip_state(struct r300_context* r300, in r300_emit_clip_state() argument 72 CS_LOCALS(r300); in r300_emit_clip_state() 77 void r300_emit_dsa_state(struct r300_context* r300, unsigned size, void* state) in r300_emit_dsa_state() argument 81 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_dsa_state() 82 CS_LOCALS(r300); in r300_emit_dsa_state() [all …]
|
D | r300_query.c | 35 struct r300_context *r300 = r300_context(pipe); in r300_create_query() local 36 struct r300_screen *r300screen = r300->screen; in r300_create_query() 60 q->buf = r300->rws->buffer_create(r300->rws, 4096, 4096, in r300_create_query() 66 q->cs_buf = r300->rws->buffer_get_cs_handle(q->buf); in r300_create_query() 80 void r300_resume_query(struct r300_context *r300, in r300_resume_query() argument 83 r300->query_current = query; in r300_resume_query() 84 r300_mark_atom_dirty(r300, &r300->query_start); in r300_resume_query() 90 struct r300_context* r300 = r300_context(pipe); in r300_begin_query() local 96 if (r300->query_current != NULL) { in r300_begin_query() 104 r300_resume_query(r300, q); in r300_begin_query() [all …]
|
D | r300_state_derived.c | 53 static void r300_draw_emit_attrib(struct r300_context* r300, in r300_draw_emit_attrib() argument 58 struct r300_vertex_shader* vs = r300->vs_state.state; in r300_draw_emit_attrib() 62 output = draw_find_shader_output(r300->draw, in r300_draw_emit_attrib() 65 draw_emit_vertex_attr(&r300->vertex_info, emit, interp, output); in r300_draw_emit_attrib() 68 static void r300_draw_emit_all_attribs(struct r300_context* r300) in r300_draw_emit_all_attribs() argument 70 struct r300_vertex_shader* vs = r300->vs_state.state; in r300_draw_emit_all_attribs() 76 r300_draw_emit_attrib(r300, EMIT_4F, INTERP_PERSPECTIVE, in r300_draw_emit_all_attribs() 84 r300_draw_emit_attrib(r300, EMIT_1F_PSIZE, INTERP_POS, in r300_draw_emit_all_attribs() 91 r300_draw_emit_attrib(r300, EMIT_4F, INTERP_LINEAR, in r300_draw_emit_all_attribs() 99 r300_draw_emit_attrib(r300, EMIT_4F, INTERP_LINEAR, in r300_draw_emit_all_attribs() [all …]
|
D | r300_context.h | 627 #define foreach_atom(r300, atom) \ argument 628 for (atom = &r300->gpu_flush; atom != (&r300->query_start)+1; atom++) 630 #define foreach_dirty_atom(r300, atom) \ argument 631 for (atom = r300->first_dirty; atom != r300->last_dirty; atom++) 654 static INLINE struct r300_fragment_shader *r300_fs(struct r300_context *r300) in r300_fs() argument 656 return (struct r300_fragment_shader*)r300->fs.state; in r300_fs() 659 static INLINE void r300_mark_atom_dirty(struct r300_context *r300, in r300_mark_atom_dirty() argument 664 if (!r300->first_dirty) { in r300_mark_atom_dirty() 665 r300->first_dirty = atom; in r300_mark_atom_dirty() 666 r300->last_dirty = atom+1; in r300_mark_atom_dirty() [all …]
|
D | r300_resource.c | 41 void r300_init_resource_functions(struct r300_context *r300) in r300_init_resource_functions() argument 43 r300->context.get_transfer = u_get_transfer_vtbl; in r300_init_resource_functions() 44 r300->context.transfer_map = u_transfer_map_vtbl; in r300_init_resource_functions() 45 r300->context.transfer_flush_region = u_default_transfer_flush_region; in r300_init_resource_functions() 46 r300->context.transfer_unmap = u_transfer_unmap_vtbl; in r300_init_resource_functions() 47 r300->context.transfer_destroy = u_transfer_destroy_vtbl; in r300_init_resource_functions() 48 r300->context.transfer_inline_write = u_default_transfer_inline_write; in r300_init_resource_functions() 49 r300->context.create_surface = r300_create_surface; in r300_init_resource_functions() 50 r300->context.surface_destroy = r300_surface_destroy; in r300_init_resource_functions()
|
D | r300_vs.c | 39 struct r300_context *r300, in r300_shader_read_vs_outputs() argument 90 if (r300->screen->caps.has_tcl) { in r300_shader_read_vs_outputs() 172 void r300_init_vs_outputs(struct r300_context *r300, in r300_init_vs_outputs() argument 176 r300_shader_read_vs_outputs(r300, &vs->info, &vs->outputs); in r300_init_vs_outputs() 180 struct r300_context* r300, in r300_dummy_vertex_shader() argument 200 r300_init_vs_outputs(r300, shader); in r300_dummy_vertex_shader() 201 r300_translate_vertex_shader(r300, shader); in r300_dummy_vertex_shader() 204 void r300_translate_vertex_shader(struct r300_context *r300, in r300_translate_vertex_shader() argument 215 DBG_ON(r300, DBG_VP) ? compiler.Base.Debug |= RC_DBG_LOG : 0; in r300_translate_vertex_shader() 216 DBG_ON(r300, DBG_P_STAT) ? compiler.Base.Debug |= RC_DBG_STATS : 0; in r300_translate_vertex_shader() [all …]
|
D | r300_render_translate.c | 28 void r300_translate_index_buffer(struct r300_context *r300, in r300_translate_index_buffer() argument 40 u_upload_alloc(r300->uploader, 0, count * 2, in r300_translate_index_buffer() 44 &r300->context, ib, index_offset, in r300_translate_index_buffer() 54 u_upload_alloc(r300->uploader, 0, count * 2, in r300_translate_index_buffer() 57 util_rebuild_ushort_elts_to_userptr(&r300->context, ib, in r300_translate_index_buffer() 68 u_upload_alloc(r300->uploader, 0, count * 4, in r300_translate_index_buffer() 71 util_rebuild_uint_elts_to_userptr(&r300->context, ib, in r300_translate_index_buffer()
|
D | r300_fs.c | 146 struct r300_context* r300, in get_external_state() argument 149 struct r300_textures_state *texstate = r300->textures_state.state; in get_external_state() 222 struct r300_context* r300, 227 struct r300_context* r300, in r300_dummy_fragment_shader() argument 246 r300_translate_fragment_shader(r300, shader, state.tokens); in r300_dummy_fragment_shader() 252 struct r300_context *r300, in r300_emit_fs_code_to_buffer() argument 263 if (r300->screen->caps.is_r500) { in r300_emit_fs_code_to_buffer() 311 struct r300_fragment_program_code *code = &generic_code->code.r300; in r300_emit_fs_code_to_buffer() 323 (r300->screen->caps.is_r400 ? 2 * (iterations + 1): 0) + in r300_emit_fs_code_to_buffer() 325 (r300->screen->caps.is_r400 ? 2 : 0) + in r300_emit_fs_code_to_buffer() [all …]
|
D | SConscript | 14 r300 = env.ConvenienceLibrary( 15 target = 'r300', 21 env.Alias('r300', r300) 23 Export('r300')
|
D | r300_screen_buffer.c | 35 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_get_transfer() local 76 util_slab_alloc(&r300->pool_transfers); in r300_buffer_get_transfer() 95 struct r300_context *r300 = r300_context(pipe); in r300_buffer_transfer_destroy() local 96 util_slab_free(&r300->pool_transfers, transfer); in r300_buffer_transfer_destroy() 103 struct r300_context *r300 = r300_context(pipe); in r300_buffer_transfer_map() local 120 map = rws->buffer_map(rbuf->cs_buf, r300->cs, usage); in r300_buffer_transfer_map()
|
D | r300_transfer.c | 86 struct r300_context *r300 = r300_context(ctx); in r300_texture_get_transfer() local 93 r300->rws->cs_is_buffer_referenced(r300->cs, tex->cs_buf, RADEON_USAGE_READWRITE); in r300_texture_get_transfer() 98 r300->rws->buffer_is_busy(tex->buf, RADEON_USAGE_READWRITE); in r300_texture_get_transfer() 115 if (r300->blitter->running) { in r300_texture_get_transfer() 229 struct r300_context *r300 = r300_context(ctx); in r300_texture_transfer_map() local 238 return r300->rws->buffer_map(r300transfer->linear_texture->cs_buf, in r300_texture_transfer_map() 239 r300->cs, transfer->usage); in r300_texture_transfer_map() 242 map = r300->rws->buffer_map(tex->cs_buf, r300->cs, transfer->usage); in r300_texture_transfer_map()
|
D | r300_vs.h | 59 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,
|
D | r300_screen_buffer.h | 39 void r300_upload_index_buffer(struct r300_context *r300,
|
/external/mesa3d/docs/ |
D | GL3.txt | 17 Conditional rendering (GL_NV_conditional_render) DONE (i965, r300, r600, swrast) 18 Map buffer subranges (GL_ARB_map_buffer_range) DONE (i965, r300, r600, swrast) 19 Clamping controls (GL_ARB_color_buffer_float) DONE (i965, r300, r600) 20 Float textures, renderbuffers (GL_ARB_texture_float) DONE (i965, r300, r600) 24 Framebuffer objects (GL_ARB_framebuffer_object) DONE (i965, r300, r600, swrast) 29 GL_EXT_texture_compression_rgtc DONE (i965, r300, r600, swrast) 32 Vertex array objects (GL_APPLE_vertex_array_object) DONE (i965, r300, r600, swrast) 47 Buffer copying (GL_ARB_copy_buffer) DONE (i965, r300, r600, swrast) 51 Rectangular textures (GL_ARB_texture_rectangle) DONE (i965, r300, r600, swrast) 53 Signed normalized textures (GL_EXT_texture_snorm) DONE (i965, r300, r600) [all …]
|
/external/mesa3d/src/gallium/targets/dri-r300/ |
D | SConscript | 10 r300, 26 env.Alias('dri-r300', module)
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_code.h | 250 struct r300_fragment_program_code r300; member 294 uint32_t r300[R300_VS_MAX_FC_OPS]; member
|
/external/mesa3d/src/gallium/targets/pipe-loader/ |
D | Makefile | 51 $(TOP)/src/gallium/drivers/r300/libr300.a 101 ifneq ($(findstring r300,$(GALLIUM_DRIVERS_DIRS)),) 102 _PIPE_TARGETS_CC += $(PIPE_PREFIX)r300.so
|