Home
last modified time | relevance | path

Searched refs:radeon (Results 1 – 25 of 111) sorted by relevance

12345

/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_cmdbuf.c59 mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in r200SetUpAtomList()
61 make_empty_list(&rmesa->radeon.hw.atomlist); in r200SetUpAtomList()
62 rmesa->radeon.hw.atomlist.name = "atom-list"; in r200SetUpAtomList()
64 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.ctx ); in r200SetUpAtomList()
65 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.set ); in r200SetUpAtomList()
66 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.lin ); in r200SetUpAtomList()
67 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.msk ); in r200SetUpAtomList()
68 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vpt ); in r200SetUpAtomList()
69 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vtx ); in r200SetUpAtomList()
70 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vap ); in r200SetUpAtomList()
[all …]
Dradeon_common_context.c78 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonGetString() local
88 GLuint agp_mode = (radeon->radeonScreen->card_type==RADEON_CARD_PCI) ? 0 : in radeonGetString()
89 radeon->radeonScreen->AGPMode; in radeonGetString()
98 get_chip_family_name(radeon->radeonScreen->chip_family), in radeonGetString()
99 radeon->radeonScreen->device_id); in radeonGetString()
104 !(radeon->TclFallback & RADEON_TCL_FALLBACK_TCL_DISABLE) in radeonGetString()
128 GLboolean radeonInitContext(radeonContextPtr radeon, in radeonInitContext() argument
143 radeon->radeonScreen = screen; in radeonInitContext()
149 radeon->glCtx = _mesa_create_context(API_OPENGL, glVisual, shareCtx, in radeonInitContext()
150 functions, (void *)radeon); in radeonInitContext()
[all …]
Dradeon_common.c73 void radeonSetCliprects(radeonContextPtr radeon) in radeonSetCliprects() argument
75 __DRIdrawable *const drawable = radeon_get_drawable(radeon); in radeonSetCliprects()
76 __DRIdrawable *const readable = radeon_get_readable(radeon); in radeonSetCliprects()
86 _mesa_resize_framebuffer(radeon->glCtx, &draw_rfb->base, in radeonSetCliprects()
94 _mesa_resize_framebuffer(radeon->glCtx, &read_rfb->base, in radeonSetCliprects()
100 if (radeon->state.scissor.enabled) in radeonSetCliprects()
101 radeonUpdateScissor(radeon->glCtx); in radeonSetCliprects()
149 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonScissor() local
152 radeon_firevertices(radeon); in radeonScissor()
161 uint32_t radeonGetAge(radeonContextPtr radeon) in radeonGetAge() argument
[all …]
Dr200_context.c77 GLuint agp_mode = (rmesa->radeon.radeonScreen->card_type == RADEON_CARD_PCI)? 0 : in r200GetString()
78 rmesa->radeon.radeonScreen->AGPMode; in r200GetString()
88 !(rmesa->radeon.TclFallback & R200_TCL_FALLBACK_TCL_DISABLE) in r200GetString()
146 static void r200_get_lock(radeonContextPtr radeon) in r200_get_lock() argument
148 r200ContextPtr rmesa = (r200ContextPtr)radeon; in r200_get_lock()
149 drm_radeon_sarea_t *sarea = radeon->sarea; in r200_get_lock()
152 if (rmesa->radeon.sarea->tiling_enabled) { in r200_get_lock()
157 if ( sarea->ctx_owner != rmesa->radeon.dri.hwContext ) { in r200_get_lock()
158 sarea->ctx_owner = rmesa->radeon.dri.hwContext; in r200_get_lock()
167 static void r200_emit_query_finish(radeonContextPtr radeon) in r200_emit_query_finish() argument
[all …]
Dradeon_queryobj.c89 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonWaitQuery() local
93 if (radeon_bo_is_referenced_by_cs(query->bo, radeon->cmdbuf.cs)) in radeonWaitQuery()
106 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonBeginQuery() local
111 assert(radeon->query.current == NULL); in radeonBeginQuery()
113 if (radeon->dma.flush) in radeonBeginQuery()
114 radeon->dma.flush(radeon->glCtx); in radeonBeginQuery()
117 …query->bo = radeon_bo_open(radeon->radeonScreen->bom, 0, RADEON_QUERY_PAGE_SIZE, RADEON_QUERY_PAGE… in radeonBeginQuery()
121 radeon->query.current = query; in radeonBeginQuery()
123 radeon->query.queryobj.dirty = GL_TRUE; in radeonBeginQuery()
124 radeon->hw.is_dirty = GL_TRUE; in radeonBeginQuery()
[all …]
Dradeon_debug.c72 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in _radeon_debug_add_indent() local
73 const size_t length = sizeof(radeon->debug.indent) in _radeon_debug_add_indent()
74 / sizeof(radeon->debug.indent[0]); in _radeon_debug_add_indent()
75 if (radeon->debug.indent_depth < length - 1) { in _radeon_debug_add_indent()
76 radeon->debug.indent[radeon->debug.indent_depth] = '\t'; in _radeon_debug_add_indent()
77 ++radeon->debug.indent_depth; in _radeon_debug_add_indent()
84 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in _radeon_debug_remove_indent() local
85 if (radeon->debug.indent_depth > 0) { in _radeon_debug_remove_indent()
86 radeon->debug.indent[radeon->debug.indent_depth] = '\0'; in _radeon_debug_remove_indent()
87 --radeon->debug.indent_depth; in _radeon_debug_remove_indent()
[all …]
Dr200_swtcl.c64 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = (ATTR); \
65 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = (STYLE); \
66 rmesa->radeon.swtcl.vertex_attr_count++; \
72 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = 0; \
73 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = EMIT_PAD; \
74 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].offset = (N); \
75 rmesa->radeon.swtcl.vertex_attr_count++; \
98 rmesa->radeon.swtcl.vertex_attr_count = 0; in r200SetVertexFormat()
184 if (rmesa->radeon.tnl_index_bitset != index_bitset || in r200SetVertexFormat()
192 rmesa->radeon.swtcl.vertex_size = in r200SetVertexFormat()
[all …]
Dradeon_queryobj.h42 static inline void radeon_init_query_stateobj(radeonContextPtr radeon, int SZ) in radeon_init_query_stateobj() argument
44 radeon->query.queryobj.cmd_size = (SZ); in radeon_init_query_stateobj()
45 radeon->query.queryobj.cmd = (uint32_t*)CALLOC((SZ) * sizeof(uint32_t)); in radeon_init_query_stateobj()
46 radeon->query.queryobj.name = "queryobj"; in radeon_init_query_stateobj()
47 radeon->query.queryobj.idx = 0; in radeon_init_query_stateobj()
48 radeon->query.queryobj.check = radeon_check_query_active; in radeon_init_query_stateobj()
49 radeon->query.queryobj.dirty = GL_FALSE; in radeon_init_query_stateobj()
50 radeon->query.queryobj.emit = radeon_emit_queryobj; in radeon_init_query_stateobj()
52 radeon->hw.max_state_size += (SZ); in radeon_init_query_stateobj()
53 insert_at_tail(&radeon->hw.atomlist, &radeon->query.queryobj); in radeon_init_query_stateobj()
Dr200_tcl.c125 radeonEmitState(&rmesa->radeon); \
136 radeonEmitState(&rmesa->radeon); \
144 if (rmesa->radeon.dma.flush == r200FlushElts && in r200AllocElts()
147 GLushort *dest = (GLushort *)(rmesa->radeon.tcl.elt_dma_bo->ptr + in r200AllocElts()
148 rmesa->radeon.tcl.elt_dma_offset + rmesa->tcl.elt_used); in r200AllocElts()
155 if (rmesa->radeon.dma.flush) in r200AllocElts()
156 rmesa->radeon.dma.flush( rmesa->radeon.glCtx ); in r200AllocElts()
159 rmesa->radeon.tcl.aos_count, 0 ); in r200AllocElts()
161 r200EmitMaxVtxIndex(rmesa, rmesa->radeon.tcl.aos[0].count); in r200AllocElts()
190 rmesa->radeon.tcl.aos_count, in r200EmitPrim()
[all …]
Dradeon_pixel_read.c95 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in do_blit_readpixels() local
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels()
132 …aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_… in do_blit_readpixels()
142 …dst_buffer = radeon_bo_open(radeon->radeonScreen->bom, 0, dst_imagesize, 1024, RADEON_GEM_DOMAIN_G… in do_blit_readpixels()
158 if (radeon->vtbl.blit(ctx, in do_blit_readpixels()
203 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonReadPixels() local
204 radeon_prepare_render(radeon); in radeonReadPixels()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common_context.c78 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonGetString() local
88 GLuint agp_mode = (radeon->radeonScreen->card_type==RADEON_CARD_PCI) ? 0 : in radeonGetString()
89 radeon->radeonScreen->AGPMode; in radeonGetString()
98 get_chip_family_name(radeon->radeonScreen->chip_family), in radeonGetString()
99 radeon->radeonScreen->device_id); in radeonGetString()
104 !(radeon->TclFallback & RADEON_TCL_FALLBACK_TCL_DISABLE) in radeonGetString()
128 GLboolean radeonInitContext(radeonContextPtr radeon, in radeonInitContext() argument
143 radeon->radeonScreen = screen; in radeonInitContext()
149 radeon->glCtx = _mesa_create_context(API_OPENGL, glVisual, shareCtx, in radeonInitContext()
150 functions, (void *)radeon); in radeonInitContext()
[all …]
Dradeon_ioctl.c67 int i, mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in radeonSetUpAtomList()
69 make_empty_list(&rmesa->radeon.hw.atomlist); in radeonSetUpAtomList()
70 rmesa->radeon.hw.atomlist.name = "atom-list"; in radeonSetUpAtomList()
72 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.ctx); in radeonSetUpAtomList()
73 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.set); in radeonSetUpAtomList()
74 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.lin); in radeonSetUpAtomList()
75 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.msk); in radeonSetUpAtomList()
76 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.vpt); in radeonSetUpAtomList()
77 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.tcl); in radeonSetUpAtomList()
78 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.msc); in radeonSetUpAtomList()
[all …]
Dradeon_common.c73 void radeonSetCliprects(radeonContextPtr radeon) in radeonSetCliprects() argument
75 __DRIdrawable *const drawable = radeon_get_drawable(radeon); in radeonSetCliprects()
76 __DRIdrawable *const readable = radeon_get_readable(radeon); in radeonSetCliprects()
86 _mesa_resize_framebuffer(radeon->glCtx, &draw_rfb->base, in radeonSetCliprects()
94 _mesa_resize_framebuffer(radeon->glCtx, &read_rfb->base, in radeonSetCliprects()
100 if (radeon->state.scissor.enabled) in radeonSetCliprects()
101 radeonUpdateScissor(radeon->glCtx); in radeonSetCliprects()
149 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonScissor() local
152 radeon_firevertices(radeon); in radeonScissor()
161 uint32_t radeonGetAge(radeonContextPtr radeon) in radeonGetAge() argument
[all …]
Dradeon_context.c94 static void r100_get_lock(radeonContextPtr radeon) in r100_get_lock() argument
96 r100ContextPtr rmesa = (r100ContextPtr)radeon; in r100_get_lock()
97 drm_radeon_sarea_t *sarea = radeon->sarea; in r100_get_lock()
100 if (rmesa->radeon.sarea->tiling_enabled) { in r100_get_lock()
108 if (sarea->ctx_owner != rmesa->radeon.dri.hwContext) { in r100_get_lock()
109 sarea->ctx_owner = rmesa->radeon.dri.hwContext; in r100_get_lock()
117 static void r100_vtbl_pre_emit_state(radeonContextPtr radeon) in r100_vtbl_pre_emit_state() argument
119 r100ContextPtr rmesa = (r100ContextPtr)radeon; in r100_vtbl_pre_emit_state()
123 radeon->hw.is_dirty = 1; in r100_vtbl_pre_emit_state()
132 static void r100_emit_query_finish(radeonContextPtr radeon) in r100_emit_query_finish() argument
[all …]
Dradeon_queryobj.c89 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonWaitQuery() local
93 if (radeon_bo_is_referenced_by_cs(query->bo, radeon->cmdbuf.cs)) in radeonWaitQuery()
106 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonBeginQuery() local
111 assert(radeon->query.current == NULL); in radeonBeginQuery()
113 if (radeon->dma.flush) in radeonBeginQuery()
114 radeon->dma.flush(radeon->glCtx); in radeonBeginQuery()
117 …query->bo = radeon_bo_open(radeon->radeonScreen->bom, 0, RADEON_QUERY_PAGE_SIZE, RADEON_QUERY_PAGE… in radeonBeginQuery()
121 radeon->query.current = query; in radeonBeginQuery()
123 radeon->query.queryobj.dirty = GL_TRUE; in radeonBeginQuery()
124 radeon->hw.is_dirty = GL_TRUE; in radeonBeginQuery()
[all …]
Dradeon_swtcl.c69 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = (ATTR); \
70 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = (STYLE); \
71 rmesa->radeon.swtcl.vertex_attr_count++; \
77 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = 0; \
78 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = EMIT_PAD; \
79 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].offset = (N); \
80 rmesa->radeon.swtcl.vertex_attr_count++; \
109 rmesa->radeon.swtcl.vertex_attr_count = 0; in radeonSetVertexFormat()
216 if (rmesa->radeon.tnl_index_bitset != index_bitset || in radeonSetVertexFormat()
220 rmesa->radeon.swtcl.vertex_size = in radeonSetVertexFormat()
[all …]
Dradeon_debug.c72 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in _radeon_debug_add_indent() local
73 const size_t length = sizeof(radeon->debug.indent) in _radeon_debug_add_indent()
74 / sizeof(radeon->debug.indent[0]); in _radeon_debug_add_indent()
75 if (radeon->debug.indent_depth < length - 1) { in _radeon_debug_add_indent()
76 radeon->debug.indent[radeon->debug.indent_depth] = '\t'; in _radeon_debug_add_indent()
77 ++radeon->debug.indent_depth; in _radeon_debug_add_indent()
84 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in _radeon_debug_remove_indent() local
85 if (radeon->debug.indent_depth > 0) { in _radeon_debug_remove_indent()
86 radeon->debug.indent[radeon->debug.indent_depth] = '\0'; in _radeon_debug_remove_indent()
87 --radeon->debug.indent_depth; in _radeon_debug_remove_indent()
[all …]
Dradeon_queryobj.h42 static inline void radeon_init_query_stateobj(radeonContextPtr radeon, int SZ) in radeon_init_query_stateobj() argument
44 radeon->query.queryobj.cmd_size = (SZ); in radeon_init_query_stateobj()
45 radeon->query.queryobj.cmd = (uint32_t*)CALLOC((SZ) * sizeof(uint32_t)); in radeon_init_query_stateobj()
46 radeon->query.queryobj.name = "queryobj"; in radeon_init_query_stateobj()
47 radeon->query.queryobj.idx = 0; in radeon_init_query_stateobj()
48 radeon->query.queryobj.check = radeon_check_query_active; in radeon_init_query_stateobj()
49 radeon->query.queryobj.dirty = GL_FALSE; in radeon_init_query_stateobj()
50 radeon->query.queryobj.emit = radeon_emit_queryobj; in radeon_init_query_stateobj()
52 radeon->hw.max_state_size += (SZ); in radeon_init_query_stateobj()
53 insert_at_tail(&radeon->hw.atomlist, &radeon->query.queryobj); in radeon_init_query_stateobj()
Dradeon_tcl.c129 radeonEmitState(&rmesa->radeon); \
140 radeonEmitState(&rmesa->radeon); \
149 if (rmesa->radeon.dma.flush) in radeonAllocElts()
150 rmesa->radeon.dma.flush( rmesa->radeon.glCtx ); in radeonAllocElts()
153 rmesa->radeon.tcl.aos_count, 0 ); in radeonAllocElts()
177 rmesa->radeon.tcl.aos_count, in radeonEmitPrim()
255 radeon_prepare_render(&rmesa->radeon); in radeonTclPrimitive()
256 if (rmesa->radeon.NewGLState) in radeonTclPrimitive()
314 state_size = radeonCountStateEmitSize( &rmesa->radeon ); in radeonEnsureEmitSize()
317 state_size += rmesa->hw.tcl.check( rmesa->radeon.glCtx, &rmesa->hw.tcl ); in radeonEnsureEmitSize()
[all …]
Dradeon_pixel_read.c95 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in do_blit_readpixels() local
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels()
132 …aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_… in do_blit_readpixels()
142 …dst_buffer = radeon_bo_open(radeon->radeonScreen->bom, 0, dst_imagesize, 1024, RADEON_GEM_DOMAIN_G… in do_blit_readpixels()
158 if (radeon->vtbl.blit(ctx, in do_blit_readpixels()
203 radeonContextPtr radeon = RADEON_CONTEXT(ctx); in radeonReadPixels() local
204 radeon_prepare_render(radeon); in radeonReadPixels()
/external/mesa3d/doxygen/
Dradeon_subset.doxy57 ../src/mesa/drivers/dri/radeon/radeon_context.c \
58 ../src/mesa/drivers/dri/radeon/radeon_context.h \
59 ../src/mesa/drivers/dri/radeon/radeon_ioctl.c \
60 ../src/mesa/drivers/dri/radeon/radeon_ioctl.h \
61 ../src/mesa/drivers/dri/radeon/radeon_lock.c \
62 ../src/mesa/drivers/dri/radeon/radeon_lock.h \
63 ../src/mesa/drivers/dri/radeon/radeon_screen.c \
64 ../src/mesa/drivers/dri/radeon/radeon_screen.h \
65 ../src/mesa/drivers/dri/radeon/radeon_state.c \
66 ../src/mesa/drivers/dri/radeon/radeon_state.h \
[all …]
/external/mesa3d/src/gallium/targets/xvmc-r300/
Dtarget.c8 struct radeon_winsys *radeon; in create_screen() local
11 radeon = radeon_drm_winsys_create(fd); in create_screen()
12 if (!radeon) in create_screen()
15 screen = r300_screen_create(radeon); in create_screen()
/external/mesa3d/src/gallium/targets/va-r600/
Dtarget.c8 struct radeon_winsys *radeon; in create_screen() local
11 radeon = radeon_drm_winsys_create(fd); in create_screen()
12 if (!radeon) in create_screen()
15 screen = r600_screen_create(radeon); in create_screen()
/external/mesa3d/src/gallium/targets/vdpau-radeonsi/
Dtarget.c8 struct radeon_winsys *radeon; in create_screen() local
11 radeon = radeon_drm_winsys_create(fd); in create_screen()
12 if (!radeon) in create_screen()
15 screen = radeonsi_screen_create(radeon); in create_screen()
/external/mesa3d/src/gallium/targets/xvmc-r600/
Dtarget.c8 struct radeon_winsys *radeon; in create_screen() local
11 radeon = radeon_drm_winsys_create(fd); in create_screen()
12 if (!radeon) in create_screen()
15 screen = r600_screen_create(radeon); in create_screen()

12345