Home
last modified time | relevance | path

Searched refs:rrb (Results 1 – 25 of 40) sorted by relevance

12

/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_fbo.c59 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_delete_renderbuffer() local
63 __func__, rb, rrb); in radeon_delete_renderbuffer()
65 ASSERT(rrb); in radeon_delete_renderbuffer()
67 if (rrb && rrb->bo) { in radeon_delete_renderbuffer()
68 radeon_bo_unref(rrb->bo); in radeon_delete_renderbuffer()
74 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
79 ba = (y >> 4) * (rrb->pitch >> 6) + (x >> 4); in get_depth_z32()
91 static GLuint get_depth_z16(const struct radeon_renderbuffer * rrb, in get_depth_z16() argument
96 ba = (y / 16) * (rrb->pitch >> 6) + (x / 32); in get_depth_z16()
110 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
[all …]
Dradeon_tex_copy.c44 struct radeon_renderbuffer *rrb, in do_copy_texsubimage() argument
62 if (!rrb) { in do_copy_texsubimage()
78 assert(rrb->bo); in do_copy_texsubimage()
84 intptr_t src_offset = rrb->draw_offset; in do_copy_texsubimage()
92 … x, y, rrb->base.Base.Width, rrb->base.Base.Height, (uint32_t) src_offset, rrb->pitch/rrb->cpp); in do_copy_texsubimage()
93 fprintf(stderr, "src size %d, dst size %d\n", rrb->bo->size, timg->mt->bo->size); in do_copy_texsubimage()
97 src_mesaformat = rrb->base.Base.Format; in do_copy_texsubimage()
101 if (!radeon->vtbl.check_blit(dst_mesaformat, rrb->pitch / rrb->cpp)) { in do_copy_texsubimage()
128 return radeon->vtbl.blit(ctx, rrb->bo, src_offset, src_mesaformat, rrb->pitch/rrb->cpp, in do_copy_texsubimage()
129 rrb->base.Base.Width, rrb->base.Base.Height, x, y, in do_copy_texsubimage()
Dradeon_common.h43 struct radeon_renderbuffer *rrb = (struct radeon_renderbuffer *)rb; in radeon_renderbuffer() local
47 if (rrb && rrb->base.Base.ClassID == RADEON_RB_CLASS) in radeon_renderbuffer()
48 return rrb; in radeon_renderbuffer()
67 struct radeon_renderbuffer *rrb; in radeon_get_depthbuffer() local
68 rrb = radeon_renderbuffer(rmesa->state.depth.rb); in radeon_get_depthbuffer()
69 if (!rrb) in radeon_get_depthbuffer()
72 return rrb; in radeon_get_depthbuffer()
77 struct radeon_renderbuffer *rrb; in radeon_get_colorbuffer() local
79 rrb = radeon_renderbuffer(rmesa->state.color.rb); in radeon_get_colorbuffer()
80 if (!rrb) in radeon_get_colorbuffer()
[all …]
Dradeon_pixel_read.c96 const struct radeon_renderbuffer *rrb = radeon_renderbuffer(ctx->ReadBuffer->_ColorReadBuffer); in do_blit_readpixels() local
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels()
154 y = rrb->base.Base.Height - height - y; in do_blit_readpixels()
159 rrb->bo, in do_blit_readpixels()
160 rrb->draw_offset, in do_blit_readpixels()
161 rrb->base.Base.Format, in do_blit_readpixels()
162 rrb->pitch / rrb->cpp, in do_blit_readpixels()
163 rrb->base.Base.Width, in do_blit_readpixels()
164 rrb->base.Base.Height, in do_blit_readpixels()
Dradeon_span.c57 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_map() local
61 if (!rb || !rrb) in radeon_renderbuffer_map()
68 rrb->base.Map = map; in radeon_renderbuffer_map()
69 rrb->base.RowStride = stride; in radeon_renderbuffer_map()
71 rrb->base.ColorType = GL_UNSIGNED_BYTE; in radeon_renderbuffer_map()
77 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_unmap() local
78 if (!rb || !rrb) in radeon_renderbuffer_unmap()
83 rrb->base.Map = NULL; in radeon_renderbuffer_unmap()
84 rrb->base.RowStride = 0; in radeon_renderbuffer_unmap()
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/
Dradeon_fbo.c59 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_delete_renderbuffer() local
63 __func__, rb, rrb); in radeon_delete_renderbuffer()
65 ASSERT(rrb); in radeon_delete_renderbuffer()
67 if (rrb && rrb->bo) { in radeon_delete_renderbuffer()
68 radeon_bo_unref(rrb->bo); in radeon_delete_renderbuffer()
74 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
79 ba = (y >> 4) * (rrb->pitch >> 6) + (x >> 4); in get_depth_z32()
91 static GLuint get_depth_z16(const struct radeon_renderbuffer * rrb, in get_depth_z16() argument
96 ba = (y / 16) * (rrb->pitch >> 6) + (x / 32); in get_depth_z16()
110 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
[all …]
Dradeon_tex_copy.c44 struct radeon_renderbuffer *rrb, in do_copy_texsubimage() argument
62 if (!rrb) { in do_copy_texsubimage()
78 assert(rrb->bo); in do_copy_texsubimage()
84 intptr_t src_offset = rrb->draw_offset; in do_copy_texsubimage()
92 … x, y, rrb->base.Base.Width, rrb->base.Base.Height, (uint32_t) src_offset, rrb->pitch/rrb->cpp); in do_copy_texsubimage()
93 fprintf(stderr, "src size %d, dst size %d\n", rrb->bo->size, timg->mt->bo->size); in do_copy_texsubimage()
97 src_mesaformat = rrb->base.Base.Format; in do_copy_texsubimage()
101 if (!radeon->vtbl.check_blit(dst_mesaformat, rrb->pitch / rrb->cpp)) { in do_copy_texsubimage()
128 return radeon->vtbl.blit(ctx, rrb->bo, src_offset, src_mesaformat, rrb->pitch/rrb->cpp, in do_copy_texsubimage()
129 rrb->base.Base.Width, rrb->base.Base.Height, x, y, in do_copy_texsubimage()
Dradeon_common.h43 struct radeon_renderbuffer *rrb = (struct radeon_renderbuffer *)rb; in radeon_renderbuffer() local
47 if (rrb && rrb->base.Base.ClassID == RADEON_RB_CLASS) in radeon_renderbuffer()
48 return rrb; in radeon_renderbuffer()
67 struct radeon_renderbuffer *rrb; in radeon_get_depthbuffer() local
68 rrb = radeon_renderbuffer(rmesa->state.depth.rb); in radeon_get_depthbuffer()
69 if (!rrb) in radeon_get_depthbuffer()
72 return rrb; in radeon_get_depthbuffer()
77 struct radeon_renderbuffer *rrb; in radeon_get_colorbuffer() local
79 rrb = radeon_renderbuffer(rmesa->state.color.rb); in radeon_get_colorbuffer()
80 if (!rrb) in radeon_get_colorbuffer()
[all …]
Dradeon_pixel_read.c96 const struct radeon_renderbuffer *rrb = radeon_renderbuffer(ctx->ReadBuffer->_ColorReadBuffer); in do_blit_readpixels() local
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels()
154 y = rrb->base.Base.Height - height - y; in do_blit_readpixels()
159 rrb->bo, in do_blit_readpixels()
160 rrb->draw_offset, in do_blit_readpixels()
161 rrb->base.Base.Format, in do_blit_readpixels()
162 rrb->pitch / rrb->cpp, in do_blit_readpixels()
163 rrb->base.Base.Width, in do_blit_readpixels()
164 rrb->base.Base.Height, in do_blit_readpixels()
Dradeon_span.c57 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_map() local
61 if (!rb || !rrb) in radeon_renderbuffer_map()
68 rrb->base.Map = map; in radeon_renderbuffer_map()
69 rrb->base.RowStride = stride; in radeon_renderbuffer_map()
71 rrb->base.ColorType = GL_UNSIGNED_BYTE; in radeon_renderbuffer_map()
77 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_unmap() local
78 if (!rb || !rrb) in radeon_renderbuffer_unmap()
83 rrb->base.Map = NULL; in radeon_renderbuffer_unmap()
84 rrb->base.RowStride = 0; in radeon_renderbuffer_unmap()
Dradeon_common.c253 struct radeon_renderbuffer *rrb; in radeon_draw_buffer() local
254 rrb = radeon_renderbuffer(fb->_ColorDrawBuffers[0]); in radeon_draw_buffer()
255 if (rrb) { in radeon_draw_buffer()
256 offset = rrb->draw_offset; in radeon_draw_buffer()
257 rrbColor = rrb; in radeon_draw_buffer()
634 struct radeon_renderbuffer *rrb; in radeonFinish() local
641 struct radeon_renderbuffer *rrb; in radeonFinish() local
642 rrb = radeon_renderbuffer(fb->_ColorDrawBuffers[i]); in radeonFinish()
643 if (rrb && rrb->bo) in radeonFinish()
644 radeon_bo_wait(rrb->bo); in radeonFinish()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_fbo.c59 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_delete_renderbuffer() local
63 __func__, rb, rrb); in radeon_delete_renderbuffer()
65 ASSERT(rrb); in radeon_delete_renderbuffer()
67 if (rrb && rrb->bo) { in radeon_delete_renderbuffer()
68 radeon_bo_unref(rrb->bo); in radeon_delete_renderbuffer()
74 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
79 ba = (y >> 4) * (rrb->pitch >> 6) + (x >> 4); in get_depth_z32()
91 static GLuint get_depth_z16(const struct radeon_renderbuffer * rrb, in get_depth_z16() argument
96 ba = (y / 16) * (rrb->pitch >> 6) + (x / 32); in get_depth_z16()
110 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
[all …]
Dradeon_tex_copy.c44 struct radeon_renderbuffer *rrb, in do_copy_texsubimage() argument
62 if (!rrb) { in do_copy_texsubimage()
78 assert(rrb->bo); in do_copy_texsubimage()
84 intptr_t src_offset = rrb->draw_offset; in do_copy_texsubimage()
92 … x, y, rrb->base.Base.Width, rrb->base.Base.Height, (uint32_t) src_offset, rrb->pitch/rrb->cpp); in do_copy_texsubimage()
93 fprintf(stderr, "src size %d, dst size %d\n", rrb->bo->size, timg->mt->bo->size); in do_copy_texsubimage()
97 src_mesaformat = rrb->base.Base.Format; in do_copy_texsubimage()
101 if (!radeon->vtbl.check_blit(dst_mesaformat, rrb->pitch / rrb->cpp)) { in do_copy_texsubimage()
128 return radeon->vtbl.blit(ctx, rrb->bo, src_offset, src_mesaformat, rrb->pitch/rrb->cpp, in do_copy_texsubimage()
129 rrb->base.Base.Width, rrb->base.Base.Height, x, y, in do_copy_texsubimage()
Dradeon_common.h43 struct radeon_renderbuffer *rrb = (struct radeon_renderbuffer *)rb; in radeon_renderbuffer() local
47 if (rrb && rrb->base.Base.ClassID == RADEON_RB_CLASS) in radeon_renderbuffer()
48 return rrb; in radeon_renderbuffer()
67 struct radeon_renderbuffer *rrb; in radeon_get_depthbuffer() local
68 rrb = radeon_renderbuffer(rmesa->state.depth.rb); in radeon_get_depthbuffer()
69 if (!rrb) in radeon_get_depthbuffer()
72 return rrb; in radeon_get_depthbuffer()
77 struct radeon_renderbuffer *rrb; in radeon_get_colorbuffer() local
79 rrb = radeon_renderbuffer(rmesa->state.color.rb); in radeon_get_colorbuffer()
80 if (!rrb) in radeon_get_colorbuffer()
[all …]
Dradeon_pixel_read.c96 const struct radeon_renderbuffer *rrb = radeon_renderbuffer(ctx->ReadBuffer->_ColorReadBuffer); in do_blit_readpixels() local
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels()
154 y = rrb->base.Base.Height - height - y; in do_blit_readpixels()
159 rrb->bo, in do_blit_readpixels()
160 rrb->draw_offset, in do_blit_readpixels()
161 rrb->base.Base.Format, in do_blit_readpixels()
162 rrb->pitch / rrb->cpp, in do_blit_readpixels()
163 rrb->base.Base.Width, in do_blit_readpixels()
164 rrb->base.Base.Height, in do_blit_readpixels()
Dradeon_span.c57 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_map() local
61 if (!rb || !rrb) in radeon_renderbuffer_map()
68 rrb->base.Map = map; in radeon_renderbuffer_map()
69 rrb->base.RowStride = stride; in radeon_renderbuffer_map()
71 rrb->base.ColorType = GL_UNSIGNED_BYTE; in radeon_renderbuffer_map()
77 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_unmap() local
78 if (!rb || !rrb) in radeon_renderbuffer_unmap()
83 rrb->base.Map = NULL; in radeon_renderbuffer_unmap()
84 rrb->base.RowStride = 0; in radeon_renderbuffer_unmap()
Dradeon_state_init.c299 struct radeon_renderbuffer *rrb, *drb; in check_always_ctx() local
302 rrb = radeon_get_colorbuffer(&r100->radeon); in check_always_ctx()
303 if (!rrb || !rrb->bo) { in check_always_ctx()
312 if (rrb) in check_always_ctx()
322 struct radeon_renderbuffer *rrb, *drb; in ctx_emit_cs() local
328 rrb = radeon_get_colorbuffer(&r100->radeon); in ctx_emit_cs()
329 if (!rrb || !rrb->bo) { in ctx_emit_cs()
335 if (rrb->cpp == 4) in ctx_emit_cs()
337 else switch (rrb->base.Base.Format) { in ctx_emit_cs()
351 cbpitch = (rrb->pitch / rrb->cpp); in ctx_emit_cs()
[all …]
Dradeon_common.c253 struct radeon_renderbuffer *rrb; in radeon_draw_buffer() local
254 rrb = radeon_renderbuffer(fb->_ColorDrawBuffers[0]); in radeon_draw_buffer()
255 if (rrb) { in radeon_draw_buffer()
256 offset = rrb->draw_offset; in radeon_draw_buffer()
257 rrbColor = rrb; in radeon_draw_buffer()
634 struct radeon_renderbuffer *rrb; in radeonFinish() local
641 struct radeon_renderbuffer *rrb; in radeonFinish() local
642 rrb = radeon_renderbuffer(fb->_ColorDrawBuffers[i]); in radeonFinish()
643 if (rrb && rrb->bo) in radeonFinish()
644 radeon_bo_wait(rrb->bo); in radeonFinish()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/
Dradeon_fbo.c59 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_delete_renderbuffer() local
63 __func__, rb, rrb); in radeon_delete_renderbuffer()
65 ASSERT(rrb); in radeon_delete_renderbuffer()
67 if (rrb && rrb->bo) { in radeon_delete_renderbuffer()
68 radeon_bo_unref(rrb->bo); in radeon_delete_renderbuffer()
74 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
79 ba = (y >> 4) * (rrb->pitch >> 6) + (x >> 4); in get_depth_z32()
91 static GLuint get_depth_z16(const struct radeon_renderbuffer * rrb, in get_depth_z16() argument
96 ba = (y / 16) * (rrb->pitch >> 6) + (x / 32); in get_depth_z16()
110 static GLuint get_depth_z32(const struct radeon_renderbuffer * rrb, in get_depth_z32() argument
[all …]
Dradeon_tex_copy.c44 struct radeon_renderbuffer *rrb, in do_copy_texsubimage() argument
62 if (!rrb) { in do_copy_texsubimage()
78 assert(rrb->bo); in do_copy_texsubimage()
84 intptr_t src_offset = rrb->draw_offset; in do_copy_texsubimage()
92 … x, y, rrb->base.Base.Width, rrb->base.Base.Height, (uint32_t) src_offset, rrb->pitch/rrb->cpp); in do_copy_texsubimage()
93 fprintf(stderr, "src size %d, dst size %d\n", rrb->bo->size, timg->mt->bo->size); in do_copy_texsubimage()
97 src_mesaformat = rrb->base.Base.Format; in do_copy_texsubimage()
101 if (!radeon->vtbl.check_blit(dst_mesaformat, rrb->pitch / rrb->cpp)) { in do_copy_texsubimage()
128 return radeon->vtbl.blit(ctx, rrb->bo, src_offset, src_mesaformat, rrb->pitch/rrb->cpp, in do_copy_texsubimage()
129 rrb->base.Base.Width, rrb->base.Base.Height, x, y, in do_copy_texsubimage()
Dradeon_common.h43 struct radeon_renderbuffer *rrb = (struct radeon_renderbuffer *)rb; in radeon_renderbuffer() local
47 if (rrb && rrb->base.Base.ClassID == RADEON_RB_CLASS) in radeon_renderbuffer()
48 return rrb; in radeon_renderbuffer()
67 struct radeon_renderbuffer *rrb; in radeon_get_depthbuffer() local
68 rrb = radeon_renderbuffer(rmesa->state.depth.rb); in radeon_get_depthbuffer()
69 if (!rrb) in radeon_get_depthbuffer()
72 return rrb; in radeon_get_depthbuffer()
77 struct radeon_renderbuffer *rrb; in radeon_get_colorbuffer() local
79 rrb = radeon_renderbuffer(rmesa->state.color.rb); in radeon_get_colorbuffer()
80 if (!rrb) in radeon_get_colorbuffer()
[all …]
Dradeon_pixel_read.c96 const struct radeon_renderbuffer *rrb = radeon_renderbuffer(ctx->ReadBuffer->_ColorReadBuffer); in do_blit_readpixels() local
109 !radeon->vtbl.check_blit(dst_format, rrb->pitch / rrb->cpp) || !radeon->vtbl.blit) { in do_blit_readpixels()
154 y = rrb->base.Base.Height - height - y; in do_blit_readpixels()
159 rrb->bo, in do_blit_readpixels()
160 rrb->draw_offset, in do_blit_readpixels()
161 rrb->base.Base.Format, in do_blit_readpixels()
162 rrb->pitch / rrb->cpp, in do_blit_readpixels()
163 rrb->base.Base.Width, in do_blit_readpixels()
164 rrb->base.Base.Height, in do_blit_readpixels()
Dradeon_span.c57 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_map() local
61 if (!rb || !rrb) in radeon_renderbuffer_map()
68 rrb->base.Map = map; in radeon_renderbuffer_map()
69 rrb->base.RowStride = stride; in radeon_renderbuffer_map()
71 rrb->base.ColorType = GL_UNSIGNED_BYTE; in radeon_renderbuffer_map()
77 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_renderbuffer_unmap() local
78 if (!rb || !rrb) in radeon_renderbuffer_unmap()
83 rrb->base.Map = NULL; in radeon_renderbuffer_unmap()
84 rrb->base.RowStride = 0; in radeon_renderbuffer_unmap()
Dradeon_state_init.c299 struct radeon_renderbuffer *rrb, *drb; in check_always_ctx() local
302 rrb = radeon_get_colorbuffer(&r100->radeon); in check_always_ctx()
303 if (!rrb || !rrb->bo) { in check_always_ctx()
312 if (rrb) in check_always_ctx()
322 struct radeon_renderbuffer *rrb, *drb; in ctx_emit_cs() local
328 rrb = radeon_get_colorbuffer(&r100->radeon); in ctx_emit_cs()
329 if (!rrb || !rrb->bo) { in ctx_emit_cs()
335 if (rrb->cpp == 4) in ctx_emit_cs()
337 else switch (rrb->base.Base.Format) { in ctx_emit_cs()
351 cbpitch = (rrb->pitch / rrb->cpp); in ctx_emit_cs()
[all …]
Dradeon_common.c253 struct radeon_renderbuffer *rrb; in radeon_draw_buffer() local
254 rrb = radeon_renderbuffer(fb->_ColorDrawBuffers[0]); in radeon_draw_buffer()
255 if (rrb) { in radeon_draw_buffer()
256 offset = rrb->draw_offset; in radeon_draw_buffer()
257 rrbColor = rrb; in radeon_draw_buffer()
634 struct radeon_renderbuffer *rrb; in radeonFinish() local
641 struct radeon_renderbuffer *rrb; in radeonFinish() local
642 rrb = radeon_renderbuffer(fb->_ColorDrawBuffers[i]); in radeonFinish()
643 if (rrb && rrb->bo) in radeonFinish()
644 radeon_bo_wait(rrb->bo); in radeonFinish()
[all …]

12