Home
last modified time | relevance | path

Searched refs:TILE_SIZE (Results 1 – 25 of 47) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
Dsp_tile_cache.c63 pos = addr.bits.y * (MAX_WIDTH / TILE_SIZE) + addr.bits.x; in is_clear_flag_set()
64 assert(pos / 32 < (MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32); in is_clear_flag_set()
77 pos = addr.bits.y * (MAX_WIDTH / TILE_SIZE) + addr.bits.x; in clear_clear_flag()
78 assert(pos / 32 < (MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32); in clear_clear_flag()
97 assert((TILE_SIZE << TILE_ADDR_BITS) >= MAX_WIDTH); in sp_create_tile_cache()
234 for (i = 0; i < TILE_SIZE; i++) { in clear_tile_rgba()
235 for (j = 0; j < TILE_SIZE; j++) { in clear_tile_rgba()
243 for (i = 0; i < TILE_SIZE; i++) { in clear_tile_rgba()
244 for (j = 0; j < TILE_SIZE; j++) { in clear_tile_rgba()
252 for (i = 0; i < TILE_SIZE; i++) { in clear_tile_rgba()
[all …]
Dsp_tile_cache.h43 #define TILE_SIZE (1 << TILE_SIZE_LOG2) macro
66 float color[TILE_SIZE][TILE_SIZE][4];
67 uint color32[TILE_SIZE][TILE_SIZE];
68 uint depth32[TILE_SIZE][TILE_SIZE];
69 ushort depth16[TILE_SIZE][TILE_SIZE];
70 ubyte stencil8[TILE_SIZE][TILE_SIZE];
71 uint colorui128[TILE_SIZE][TILE_SIZE][4];
72 int colori128[TILE_SIZE][TILE_SIZE][4];
73 uint64_t depth64[TILE_SIZE][TILE_SIZE];
90 uint clear_flags[(MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32];
[all …]
Dsp_tex_tile_cache.h44 #define TILE_SIZE (1 << TILE_SIZE_LOG2) macro
70 float color[TILE_SIZE][TILE_SIZE][4];
71 unsigned int colorui[TILE_SIZE][TILE_SIZE][4];
72 int colori[TILE_SIZE][TILE_SIZE][4];
142 addr.bits.x = x / TILE_SIZE; in tex_tile_address()
143 addr.bits.y = y / TILE_SIZE; in tex_tile_address()
Dsp_tex_tile_cache.c53 assert((TILE_SIZE << TEX_ADDR_BITS) >= (1 << (SP_MAX_TEXTURE_2D_LEVELS-1))); in sp_create_tex_tile_cache()
246 pos, x/TILE_SIZE, y/TILE_SIZE, z, face, level, in sp_find_cached_tile_tex()
298 addr.bits.x * TILE_SIZE, in sp_find_cached_tile_tex()
299 addr.bits.y * TILE_SIZE, in sp_find_cached_tile_tex()
300 TILE_SIZE, in sp_find_cached_tile_tex()
301 TILE_SIZE, in sp_find_cached_tile_tex()
307 addr.bits.x * TILE_SIZE, in sp_find_cached_tile_tex()
308 addr.bits.y * TILE_SIZE, in sp_find_cached_tile_tex()
309 TILE_SIZE, in sp_find_cached_tile_tex()
310 TILE_SIZE, in sp_find_cached_tile_tex()
[all …]
Dsp_quad_depth_test.c68 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
69 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
75 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
76 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
83 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
84 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
92 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
93 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
100 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
101 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tile_cache.c63 pos = addr.bits.y * (MAX_WIDTH / TILE_SIZE) + addr.bits.x; in is_clear_flag_set()
64 assert(pos / 32 < (MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32); in is_clear_flag_set()
77 pos = addr.bits.y * (MAX_WIDTH / TILE_SIZE) + addr.bits.x; in clear_clear_flag()
78 assert(pos / 32 < (MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32); in clear_clear_flag()
97 assert((TILE_SIZE << TILE_ADDR_BITS) >= MAX_WIDTH); in sp_create_tile_cache()
234 for (i = 0; i < TILE_SIZE; i++) { in clear_tile_rgba()
235 for (j = 0; j < TILE_SIZE; j++) { in clear_tile_rgba()
243 for (i = 0; i < TILE_SIZE; i++) { in clear_tile_rgba()
244 for (j = 0; j < TILE_SIZE; j++) { in clear_tile_rgba()
252 for (i = 0; i < TILE_SIZE; i++) { in clear_tile_rgba()
[all …]
Dsp_tile_cache.h43 #define TILE_SIZE (1 << TILE_SIZE_LOG2) macro
66 float color[TILE_SIZE][TILE_SIZE][4];
67 uint color32[TILE_SIZE][TILE_SIZE];
68 uint depth32[TILE_SIZE][TILE_SIZE];
69 ushort depth16[TILE_SIZE][TILE_SIZE];
70 ubyte stencil8[TILE_SIZE][TILE_SIZE];
71 uint colorui128[TILE_SIZE][TILE_SIZE][4];
72 int colori128[TILE_SIZE][TILE_SIZE][4];
73 uint64_t depth64[TILE_SIZE][TILE_SIZE];
90 uint clear_flags[(MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32];
[all …]
Dsp_tex_tile_cache.h44 #define TILE_SIZE (1 << TILE_SIZE_LOG2) macro
70 float color[TILE_SIZE][TILE_SIZE][4];
71 unsigned int colorui[TILE_SIZE][TILE_SIZE][4];
72 int colori[TILE_SIZE][TILE_SIZE][4];
142 addr.bits.x = x / TILE_SIZE; in tex_tile_address()
143 addr.bits.y = y / TILE_SIZE; in tex_tile_address()
Dsp_tex_tile_cache.c53 assert((TILE_SIZE << TEX_ADDR_BITS) >= (1 << (SP_MAX_TEXTURE_2D_LEVELS-1))); in sp_create_tex_tile_cache()
246 pos, x/TILE_SIZE, y/TILE_SIZE, z, face, level, in sp_find_cached_tile_tex()
298 addr.bits.x * TILE_SIZE, in sp_find_cached_tile_tex()
299 addr.bits.y * TILE_SIZE, in sp_find_cached_tile_tex()
300 TILE_SIZE, in sp_find_cached_tile_tex()
301 TILE_SIZE, in sp_find_cached_tile_tex()
307 addr.bits.x * TILE_SIZE, in sp_find_cached_tile_tex()
308 addr.bits.y * TILE_SIZE, in sp_find_cached_tile_tex()
309 TILE_SIZE, in sp_find_cached_tile_tex()
310 TILE_SIZE, in sp_find_cached_tile_tex()
[all …]
Dsp_quad_depth_test.c68 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
69 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
75 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
76 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
83 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
84 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
92 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
93 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
100 int x = quad->input.x0 % TILE_SIZE + (j & 1); in get_depth_stencil_values()
101 int y = quad->input.y0 % TILE_SIZE + (j >> 1); in get_depth_stencil_values()
[all …]
/external/pixman/demos/
Dcheckerboard.c11 #define TILE_SIZE 25 in main() macro
31 for (i = 0; i < HEIGHT / TILE_SIZE; ++i) in main()
33 for (j = 0; j < WIDTH / TILE_SIZE; ++j) in main()
35 double u = (double)(j + 1) / (WIDTH / TILE_SIZE); in main()
36 double v = (double)(i + 1) / (HEIGHT / TILE_SIZE); in main()
54 0, 0, 0, 0, j * TILE_SIZE, i * TILE_SIZE, in main()
55 TILE_SIZE, TILE_SIZE); in main()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
Dlp_texture.c90 const unsigned tx = align(width, TILE_SIZE) / TILE_SIZE; in alloc_layout_array()
91 const unsigned ty = align(height, TILE_SIZE) / TILE_SIZE; in alloc_layout_array()
132 alignment = TILE_SIZE; in llvmpipe_texture_layout()
147 const unsigned width_t = align(width, TILE_SIZE) / TILE_SIZE; in llvmpipe_texture_layout()
148 const unsigned height_t = align(height, TILE_SIZE) / TILE_SIZE; in llvmpipe_texture_layout()
206 const unsigned width = align(lpr->base.width0, TILE_SIZE); in llvmpipe_displaytarget_layout()
207 const unsigned height = align(lpr->base.height0, TILE_SIZE); in llvmpipe_displaytarget_layout()
208 const unsigned width_t = width / TILE_SIZE; in llvmpipe_displaytarget_layout()
209 const unsigned height_t = height / TILE_SIZE; in llvmpipe_displaytarget_layout()
488 width = align(lpr->base.width0, TILE_SIZE); in llvmpipe_resource_from_handle()
[all …]
Dlp_surface.c45 *x_tile = x & ~(TILE_SIZE - 1); in adjust_to_tile_bounds()
46 *y_tile = y & ~(TILE_SIZE - 1); in adjust_to_tile_bounds()
47 *w_tile = ((x + width + TILE_SIZE - 1) & ~(TILE_SIZE - 1)) - *x_tile; in adjust_to_tile_bounds()
48 *h_tile = ((y + height + TILE_SIZE - 1) & ~(TILE_SIZE - 1)) - *y_tile; in adjust_to_tile_bounds()
106 for (y = 0; y < th; y += TILE_SIZE) { in lp_resource_copy()
107 for (x = 0; x < tw; x += TILE_SIZE) { in lp_resource_copy()
124 for (y = 0; y < th; y += TILE_SIZE) { in lp_resource_copy()
126 ty + y + TILE_SIZE <= dsty + height ? in lp_resource_copy()
129 for (x = 0; x < tw; x += TILE_SIZE) { in lp_resource_copy()
131 tx + x + TILE_SIZE <= dstx + width ? in lp_resource_copy()
Dlp_tile_image.c41 #define BYTES_PER_TILE (TILE_SIZE * TILE_SIZE * 4)
136 assert(x % TILE_SIZE == 0); in lp_tiled_to_linear()
137 assert(y % TILE_SIZE == 0); in lp_tiled_to_linear()
194 const uint tile_w = TILE_SIZE, tile_h = TILE_SIZE; in lp_tiled_to_linear()
227 assert(x % TILE_SIZE == 0); in lp_linear_to_tiled()
228 assert(y % TILE_SIZE == 0); in lp_linear_to_tiled()
283 const uint tile_w = TILE_SIZE, tile_h = TILE_SIZE; in lp_linear_to_tiled()
287 for (j = 0; j < height; j += TILE_SIZE) { in lp_linear_to_tiled()
288 for (i = 0; i < width; i += TILE_SIZE) { in lp_linear_to_tiled()
314 unsigned wt = (width + TILE_SIZE - 1) / TILE_SIZE; in test_tiled_linear_conversion()
[all …]
Dlp_rast_debug.c9 char data[TILE_SIZE][TILE_SIZE];
150 for (i = 0; i < TILE_SIZE; i++) in debug_shade_tile()
151 for (j = 0; j < TILE_SIZE; j++) in debug_shade_tile()
154 return TILE_SIZE * TILE_SIZE; in debug_shade_tile()
165 for (i = 0; i < TILE_SIZE; i++) in debug_clear_tile()
166 for (j = 0; j < TILE_SIZE; j++) in debug_clear_tile()
169 return TILE_SIZE * TILE_SIZE; in debug_clear_tile()
202 for(y = 0; y < TILE_SIZE; y++) in debug_triangle()
204 for(x = 0; x < TILE_SIZE; x++) in debug_triangle()
219 plane[i].c += plane[i].dcdx * TILE_SIZE; in debug_triangle()
[all …]
Dlp_memory.c40 uint8_t lp_swizzled_cbuf[LP_MAX_THREADS][PIPE_MAX_COLOR_BUFS][TILE_SIZE * TILE_SIZE * 4];
46 uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
Dlp_memory.h38 uint8_t lp_swizzled_cbuf[LP_MAX_THREADS][PIPE_MAX_COLOR_BUFS][TILE_SIZE * TILE_SIZE * 4];
41 uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
Dlp_rast_priv.h155 assert(x < scene->tiles_x * TILE_SIZE); in lp_rast_get_depth_block_pointer()
156 assert(y < scene->tiles_y * TILE_SIZE); in lp_rast_get_depth_block_pointer()
187 assert(task->x < scene->tiles_x * TILE_SIZE); in lp_rast_get_color_tile_pointer()
188 assert(task->y < scene->tiles_y * TILE_SIZE); in lp_rast_get_color_tile_pointer()
189 assert(task->x % TILE_SIZE == 0); in lp_rast_get_color_tile_pointer()
190 assert(task->y % TILE_SIZE == 0); in lp_rast_get_color_tile_pointer()
227 assert(x < task->scene->tiles_x * TILE_SIZE); in lp_rast_get_color_block_pointer()
228 assert(y < task->scene->tiles_y * TILE_SIZE); in lp_rast_get_color_block_pointer()
235 px = x % TILE_SIZE; in lp_rast_get_color_block_pointer()
236 py = y % TILE_SIZE; in lp_rast_get_color_block_pointer()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_texture.c90 const unsigned tx = align(width, TILE_SIZE) / TILE_SIZE; in alloc_layout_array()
91 const unsigned ty = align(height, TILE_SIZE) / TILE_SIZE; in alloc_layout_array()
132 alignment = TILE_SIZE; in llvmpipe_texture_layout()
147 const unsigned width_t = align(width, TILE_SIZE) / TILE_SIZE; in llvmpipe_texture_layout()
148 const unsigned height_t = align(height, TILE_SIZE) / TILE_SIZE; in llvmpipe_texture_layout()
206 const unsigned width = align(lpr->base.width0, TILE_SIZE); in llvmpipe_displaytarget_layout()
207 const unsigned height = align(lpr->base.height0, TILE_SIZE); in llvmpipe_displaytarget_layout()
208 const unsigned width_t = width / TILE_SIZE; in llvmpipe_displaytarget_layout()
209 const unsigned height_t = height / TILE_SIZE; in llvmpipe_displaytarget_layout()
488 width = align(lpr->base.width0, TILE_SIZE); in llvmpipe_resource_from_handle()
[all …]
Dlp_surface.c45 *x_tile = x & ~(TILE_SIZE - 1); in adjust_to_tile_bounds()
46 *y_tile = y & ~(TILE_SIZE - 1); in adjust_to_tile_bounds()
47 *w_tile = ((x + width + TILE_SIZE - 1) & ~(TILE_SIZE - 1)) - *x_tile; in adjust_to_tile_bounds()
48 *h_tile = ((y + height + TILE_SIZE - 1) & ~(TILE_SIZE - 1)) - *y_tile; in adjust_to_tile_bounds()
106 for (y = 0; y < th; y += TILE_SIZE) { in lp_resource_copy()
107 for (x = 0; x < tw; x += TILE_SIZE) { in lp_resource_copy()
124 for (y = 0; y < th; y += TILE_SIZE) { in lp_resource_copy()
126 ty + y + TILE_SIZE <= dsty + height ? in lp_resource_copy()
129 for (x = 0; x < tw; x += TILE_SIZE) { in lp_resource_copy()
131 tx + x + TILE_SIZE <= dstx + width ? in lp_resource_copy()
Dlp_tile_image.c41 #define BYTES_PER_TILE (TILE_SIZE * TILE_SIZE * 4)
136 assert(x % TILE_SIZE == 0); in lp_tiled_to_linear()
137 assert(y % TILE_SIZE == 0); in lp_tiled_to_linear()
194 const uint tile_w = TILE_SIZE, tile_h = TILE_SIZE; in lp_tiled_to_linear()
227 assert(x % TILE_SIZE == 0); in lp_linear_to_tiled()
228 assert(y % TILE_SIZE == 0); in lp_linear_to_tiled()
283 const uint tile_w = TILE_SIZE, tile_h = TILE_SIZE; in lp_linear_to_tiled()
287 for (j = 0; j < height; j += TILE_SIZE) { in lp_linear_to_tiled()
288 for (i = 0; i < width; i += TILE_SIZE) { in lp_linear_to_tiled()
314 unsigned wt = (width + TILE_SIZE - 1) / TILE_SIZE; in test_tiled_linear_conversion()
[all …]
Dlp_rast_debug.c9 char data[TILE_SIZE][TILE_SIZE];
150 for (i = 0; i < TILE_SIZE; i++) in debug_shade_tile()
151 for (j = 0; j < TILE_SIZE; j++) in debug_shade_tile()
154 return TILE_SIZE * TILE_SIZE; in debug_shade_tile()
165 for (i = 0; i < TILE_SIZE; i++) in debug_clear_tile()
166 for (j = 0; j < TILE_SIZE; j++) in debug_clear_tile()
169 return TILE_SIZE * TILE_SIZE; in debug_clear_tile()
202 for(y = 0; y < TILE_SIZE; y++) in debug_triangle()
204 for(x = 0; x < TILE_SIZE; x++) in debug_triangle()
219 plane[i].c += plane[i].dcdx * TILE_SIZE; in debug_triangle()
[all …]
Dlp_memory.c40 uint8_t lp_swizzled_cbuf[LP_MAX_THREADS][PIPE_MAX_COLOR_BUFS][TILE_SIZE * TILE_SIZE * 4];
46 uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
Dlp_memory.h38 uint8_t lp_swizzled_cbuf[LP_MAX_THREADS][PIPE_MAX_COLOR_BUFS][TILE_SIZE * TILE_SIZE * 4];
41 uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
Dlp_rast_priv.h155 assert(x < scene->tiles_x * TILE_SIZE); in lp_rast_get_depth_block_pointer()
156 assert(y < scene->tiles_y * TILE_SIZE); in lp_rast_get_depth_block_pointer()
187 assert(task->x < scene->tiles_x * TILE_SIZE); in lp_rast_get_color_tile_pointer()
188 assert(task->y < scene->tiles_y * TILE_SIZE); in lp_rast_get_color_tile_pointer()
189 assert(task->x % TILE_SIZE == 0); in lp_rast_get_color_tile_pointer()
190 assert(task->y % TILE_SIZE == 0); in lp_rast_get_color_tile_pointer()
227 assert(x < task->scene->tiles_x * TILE_SIZE); in lp_rast_get_color_block_pointer()
228 assert(y < task->scene->tiles_y * TILE_SIZE); in lp_rast_get_color_block_pointer()
235 px = x % TILE_SIZE; in lp_rast_get_color_block_pointer()
236 py = y % TILE_SIZE; in lp_rast_get_color_block_pointer()

12