Home
last modified time | relevance | path

Searched refs:pixel_offset (Results 1 – 16 of 16) sorted by relevance

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_line.c96 (dadx * (info->v1[0][0] - setup->pixel_offset) + in linear_coef()
97 dady * (info->v1[0][1] - setup->pixel_offset))); in linear_coef()
128 (dadx * (info->v1[0][0] - setup->pixel_offset) + in perspective_coef()
129 dady * (info->v1[0][1] - setup->pixel_offset))); in perspective_coef()
443 x[0] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset); in try_setup_line()
444 x[1] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset); in try_setup_line()
445 x[2] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset); in try_setup_line()
446 x[3] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset); in try_setup_line()
448 y[0] = subpixel_snap(v1[0][1] + y_offset - setup->pixel_offset) - fixed_width/2; in try_setup_line()
449 y[1] = subpixel_snap(v2[0][1] + y_offset_end - setup->pixel_offset) - fixed_width/2; in try_setup_line()
[all …]
Dlp_rast_priv.h153 unsigned px, py, pixel_offset; in lp_rast_get_color_block_pointer() local
172 pixel_offset = px * task->scene->cbufs[buf].format_bytes + in lp_rast_get_color_block_pointer()
174 color = task->color_tiles[buf] + pixel_offset; in lp_rast_get_color_block_pointer()
193 unsigned px, py, pixel_offset; in lp_rast_get_depth_block_pointer() local
206 pixel_offset = px * task->scene->zsbuf.format_bytes + in lp_rast_get_depth_block_pointer()
208 depth = task->depth_tile + pixel_offset; in lp_rast_get_depth_block_pointer()
Dlp_setup_point.c122 float x0 = info->v0[0][0] - setup->pixel_offset; in texcoord_coef()
123 float y0 = info->v0[0][1] - setup->pixel_offset; in texcoord_coef()
138 float x0 = info->v0[0][0] - setup->pixel_offset; in texcoord_coef()
139 float y0 = info->v0[0][1] - setup->pixel_offset; in texcoord_coef()
377 x0 = subpixel_snap(v0[0][0] - setup->pixel_offset) - fixed_width/2; in try_setup_point()
378 y0 = subpixel_snap(v0[0][1] - setup->pixel_offset) - fixed_width/2; in try_setup_point()
410 assert(setup->pixel_offset != 0); in try_setup_point()
Dlp_setup_tri.c1021 __m128 pix_offset = _mm_set1_ps(setup->pixel_offset); in calc_fixed_position()
1047 position->x[0] = subpixel_snap(v0[0][0] - setup->pixel_offset); in calc_fixed_position()
1048 position->x[1] = subpixel_snap(v1[0][0] - setup->pixel_offset); in calc_fixed_position()
1049 position->x[2] = subpixel_snap(v2[0][0] - setup->pixel_offset); in calc_fixed_position()
1052 position->y[0] = subpixel_snap(v0[0][1] - setup->pixel_offset); in calc_fixed_position()
1053 position->y[1] = subpixel_snap(v1[0][1] - setup->pixel_offset); in calc_fixed_position()
1054 position->y[2] = subpixel_snap(v2[0][1] - setup->pixel_offset); in calc_fixed_position()
Dlp_setup_context.h105 float pixel_offset; member
Dlp_setup.c591 setup->pixel_offset = half_pixel_center ? 0.5f : 0.0f; in lp_setup_set_triangle_state()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c93 float pixel_offset; member
399 setup->pixel_offset = 0.5f; in setup_sort_vertices()
401 setup->pixel_offset = 0.0f; in setup_sort_vertices()
513 (dadx * (setup->vmin[0][0] - setup->pixel_offset) + in tri_linear_coeff()
514 dady * (setup->vmin[0][1] - setup->pixel_offset))); in tri_linear_coeff()
550 (dadx * (setup->vmin[0][0] - setup->pixel_offset) + in tri_persp_coeff()
551 dady * (setup->vmin[0][1] - setup->pixel_offset))); in tri_persp_coeff()
681 float vmin_x = setup->vmin[0][0] + setup->pixel_offset; in setup_tri_edges()
682 float vmid_x = setup->vmid[0][0] + setup->pixel_offset; in setup_tri_edges()
684 float vmin_y = setup->vmin[0][1] - setup->pixel_offset; in setup_tri_edges()
[all …]
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_tiling.c210 uint32_t pixel_offset = get_pixel_offset(cpp, image_h, in vc5_move_pixels_general_percpp() local
217 pixel_offset); in vc5_move_pixels_general_percpp()
222 gpu + pixel_offset, in vc5_move_pixels_general_percpp()
225 memcpy(gpu + pixel_offset, in vc5_move_pixels_general_percpp()
/external/deqp/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5TextureGatherOffset.cpp1280 const unsigned int pixel_offset = y * line_size + x * n_components_per_pixel; in prepareTextureData() local
1283 texture_data[pixel_offset + 0] = x; in prepareTextureData()
1284 texture_data[pixel_offset + 1] = y; in prepareTextureData()
1287 texture_data[pixel_offset + 2] = x; in prepareTextureData()
1288 texture_data[pixel_offset + 3] = y; in prepareTextureData()
2212 const unsigned int pixel_offset = y * line_size + x * n_components_per_pixel; in prepareTextureData() local
2215 texture_data[pixel_offset] = depth; in prepareTextureData()
2488 const unsigned int pixel_offset = y * line_size + x * n_components_per_pixel; in prepareTextureData() local
2491 texture_data[pixel_offset] = depth; in prepareTextureData()
/external/deqp/external/openglcts/modules/gl/
Dgl3cCullDistanceTests.cpp2283 for (glw::GLint pixel_offset = 0; pixel_offset < m_sub_grid_cell_size; pixel_offset++) in executeRenderTest() local
2285 if (readRedPixelValue(origin_x + pixel_offset, origin_y) != 0) in executeRenderTest()
2290 if (readRedPixelValue(origin_x + m_sub_grid_cell_size - 1, origin_y + pixel_offset) != 0) in executeRenderTest()
2295 if (readRedPixelValue(origin_x + m_sub_grid_cell_size - 1 - pixel_offset, in executeRenderTest()
2301 if (readRedPixelValue(origin_x, origin_y + m_sub_grid_cell_size - 1 - pixel_offset) != 0) in executeRenderTest()
Dgl4cStencilTexturingTests.cpp1049 const GLuint pixel_offset = pixel_size * x; in prepareSourceTextureData() local
1055 GLubyte* pixel_data = &texture_data[0] + line_offset + pixel_offset; in prepareSourceTextureData()
Dgl4cCopyImageTests.cpp3203 const GLuint pixel_offset = x * pixel_size; in prepareSrcPxls() local
3205 GLubyte* pixel = line + pixel_offset; in prepareSrcPxls()
3745 const GLuint pixel_offset = x * pixel_size; in compareImages() local
3748 const GLubyte* left_pixel_data = left_line_data + pixel_offset; in compareImages()
3749 const GLubyte* right_pixel_data = right_line_data + pixel_offset; in compareImages()
4038 const GLuint pixel_offset = x * pixel_size; in prepareSrcPxls() local
4040 GLubyte* pixel_data = line_data + pixel_offset; in prepareSrcPxls()
Dgl4cBufferStorageTests.cpp3435 static const GLuint pixel_offset = 8 * line_size + 7 * pixel_size; in iterate() local
3610 if (0 != memcmp(texture_data + pixel_offset, &expected_pixel, pixel_size)) in iterate()
3663 if (0 != memcmp(texture_data + pixel_offset, &expected_pixel, pixel_size)) in iterate()
Dgl4cShadingLanguage420PackTests.cpp2962 const GLuint pixel_offset = x + line_offset; in prepareSourceTexture() local
2964 data[pixel_offset] = blue_color; in prepareSourceTexture()
3978 const GLuint pixel_offset = x + line_offset; in prepareSourceTexture() local
3980 data[pixel_offset] = blue_color; in prepareSourceTexture()
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayColorDepthAttachments.cpp154 const glw::GLuint pixel_offset = line_offset + x * N_Components; in verifyImage() local
158 if (image[pixel_offset + component] != components[component]) in verifyImage()
DesextcTextureCubeMapArraySampling.cpp1693 const glw::GLuint pixel_offset = pixel * n_components + face_offset; in verifyResultImage() local
1701 const glw::GLuint component_offset = pixel_offset + component; in verifyResultImage()