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

/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_pointcoord_unittest.cc32 GLuint SetupQuad(GLint position_location, GLfloat pixel_offset);
38 GLint position_location, GLfloat pixel_offset) {
43 -0.5f + pixel_offset, -0.5f + pixel_offset,
44 0.5f + pixel_offset, -0.5f + pixel_offset,
45 -0.5f + pixel_offset, 0.5f + pixel_offset,
46 0.5f + pixel_offset, 0.5f + pixel_offset,
37 SetupQuad( GLint position_location, GLfloat pixel_offset) argument
116 GLfloat pixel_offset = (max_point_size % 2) ? (1.0f / kResolution) : 0; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_setup_line.c93 (dadx * (info->v1[0][0] - setup->pixel_offset) +
94 dady * (info->v1[0][1] - setup->pixel_offset)));
125 (dadx * (info->v1[0][0] - setup->pixel_offset) +
126 dady * (info->v1[0][1] - setup->pixel_offset)));
426 x[0] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset);
427 x[1] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset);
428 x[2] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset);
429 x[3] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset);
431 y[0] = subpixel_snap(v1[0][1] + y_offset - setup->pixel_offset) - fixed_width/2;
432 y[1] = subpixel_snap(v2[0][1] + y_offset_end - setup->pixel_offset)
[all...]
H A Dlp_setup_point.c118 float x0 = info->v0[0][0] - setup->pixel_offset;
119 float y0 = info->v0[0][1] - setup->pixel_offset;
134 float x0 = info->v0[0][0] - setup->pixel_offset;
135 float y0 = info->v0[0][1] - setup->pixel_offset;
318 const int x0 = subpixel_snap(v0[0][0] - setup->pixel_offset) - fixed_width/2;
319 const int y0 = subpixel_snap(v0[0][1] - setup->pixel_offset) - fixed_width/2;
336 int adj = (setup->pixel_offset != 0) ? 1 : 0;
H A Dlp_setup_context.h100 float pixel_offset; member in struct:lp_setup_context
H A Dlp_rast_priv.h224 unsigned px, py, pixel_offset; local
237 pixel_offset = tile_pixel_offset(px, py, 0);
239 color = color + pixel_offset;
H A Dlp_setup_tri.c270 int adj = (setup->pixel_offset != 0) ? 1 : 0;
368 top_left_flag = _mm_set1_epi32((setup->pixel_offset == 0) ? ~0 : 0);
438 if (setup->pixel_offset == 0) {
796 position->x[0] = subpixel_snap(v0[0][0] - setup->pixel_offset);
797 position->x[1] = subpixel_snap(v1[0][0] - setup->pixel_offset);
798 position->x[2] = subpixel_snap(v2[0][0] - setup->pixel_offset);
801 position->y[0] = subpixel_snap(v0[0][1] - setup->pixel_offset);
802 position->y[1] = subpixel_snap(v1[0][1] - setup->pixel_offset);
803 position->y[2] = subpixel_snap(v2[0][1] - setup->pixel_offset);
H A Dlp_setup.c492 setup->pixel_offset = gl_rasterization_rules ? 0.5f : 0.0f;
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_setup_line.c93 (dadx * (info->v1[0][0] - setup->pixel_offset) +
94 dady * (info->v1[0][1] - setup->pixel_offset)));
125 (dadx * (info->v1[0][0] - setup->pixel_offset) +
126 dady * (info->v1[0][1] - setup->pixel_offset)));
426 x[0] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset);
427 x[1] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset);
428 x[2] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset);
429 x[3] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset);
431 y[0] = subpixel_snap(v1[0][1] + y_offset - setup->pixel_offset) - fixed_width/2;
432 y[1] = subpixel_snap(v2[0][1] + y_offset_end - setup->pixel_offset)
[all...]
H A Dlp_setup_point.c118 float x0 = info->v0[0][0] - setup->pixel_offset;
119 float y0 = info->v0[0][1] - setup->pixel_offset;
134 float x0 = info->v0[0][0] - setup->pixel_offset;
135 float y0 = info->v0[0][1] - setup->pixel_offset;
318 const int x0 = subpixel_snap(v0[0][0] - setup->pixel_offset) - fixed_width/2;
319 const int y0 = subpixel_snap(v0[0][1] - setup->pixel_offset) - fixed_width/2;
336 int adj = (setup->pixel_offset != 0) ? 1 : 0;
H A Dlp_setup_context.h100 float pixel_offset; member in struct:lp_setup_context
H A Dlp_rast_priv.h224 unsigned px, py, pixel_offset; local
237 pixel_offset = tile_pixel_offset(px, py, 0);
239 color = color + pixel_offset;
H A Dlp_setup_tri.c270 int adj = (setup->pixel_offset != 0) ? 1 : 0;
368 top_left_flag = _mm_set1_epi32((setup->pixel_offset == 0) ? ~0 : 0);
438 if (setup->pixel_offset == 0) {
796 position->x[0] = subpixel_snap(v0[0][0] - setup->pixel_offset);
797 position->x[1] = subpixel_snap(v1[0][0] - setup->pixel_offset);
798 position->x[2] = subpixel_snap(v2[0][0] - setup->pixel_offset);
801 position->y[0] = subpixel_snap(v0[0][1] - setup->pixel_offset);
802 position->y[1] = subpixel_snap(v1[0][1] - setup->pixel_offset);
803 position->y[2] = subpixel_snap(v2[0][1] - setup->pixel_offset);
H A Dlp_setup.c492 setup->pixel_offset = gl_rasterization_rules ? 0.5f : 0.0f;
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
H A Dsp_setup.c94 float pixel_offset; member in struct:setup_context
398 setup->pixel_offset = 0.5f;
400 setup->pixel_offset = 0.0f;
501 * pixel centers, in other words (pixel_offset, pixel_offset).
512 (dadx * (setup->vmin[0][0] - setup->pixel_offset) +
513 dady * (setup->vmin[0][1] - setup->pixel_offset)));
564 (dadx * (setup->vmin[0][0] - setup->pixel_offset) +
565 dady * (setup->vmin[0][1] - setup->pixel_offset)));
678 float vmin_x = setup->vmin[0][0] + setup->pixel_offset;
[all...]
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_setup.c94 float pixel_offset; member in struct:setup_context
398 setup->pixel_offset = 0.5f;
400 setup->pixel_offset = 0.0f;
501 * pixel centers, in other words (pixel_offset, pixel_offset).
512 (dadx * (setup->vmin[0][0] - setup->pixel_offset) +
513 dady * (setup->vmin[0][1] - setup->pixel_offset)));
564 (dadx * (setup->vmin[0][0] - setup->pixel_offset) +
565 dady * (setup->vmin[0][1] - setup->pixel_offset)));
678 float vmin_x = setup->vmin[0][0] + setup->pixel_offset;
[all...]
/external/chromium_org/ppapi/tests/
H A Dtest_browser_font.cc110 uint32_t pixel_offset = font.PixelOffsetForCharacter(run, original_char); local
111 ASSERT_TRUE(pixel_offset > 0);
114 run, static_cast<int32_t>(pixel_offset));

Completed in 625 milliseconds