/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_vertex.c | 43 * vinfo->size field. 46 draw_compute_vertex_size(struct vertex_info *vinfo) 50 vinfo->size = 0; 51 for (i = 0; i < vinfo->num_attribs; i++) 52 vinfo->size += draw_translate_vinfo_size(vinfo->attrib[i].emit); 54 assert(vinfo->size % 4 == 0); 56 vinfo->size /= 4; 61 draw_dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data) 65 for (i = 0; i < vinfo->num_attribs; i++) [all...] |
draw_vertex.h | 125 draw_emit_vertex_attr(struct vertex_info *vinfo, 130 const uint n = vinfo->num_attribs; 131 assert(n < Elements(vinfo->attrib)); 132 vinfo->attrib[n].emit = emit; 133 vinfo->attrib[n].interp_mode = interp; 134 vinfo->attrib[n].src_index = src_index; 135 vinfo->num_attribs++; 140 extern void draw_compute_vertex_size(struct vertex_info *vinfo); 142 void draw_dump_emitted_vertex(const struct vertex_info *vinfo,
|
draw_pt_fetch_emit.c | 80 const struct vertex_info *vinfo; member in struct:fetch_emit_middle_end 97 const struct vertex_info *vinfo; local 108 vinfo = feme->vinfo = draw->render->get_vertex_info(draw->render); 116 for (i = 0; i < vinfo->num_attribs; i++) { 117 const struct pipe_vertex_element *src = &draw->pt.vertex_element[vinfo->attrib[i].src_index]; 125 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); 126 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); 128 if (vinfo->attrib[i].emit == EMIT_OMIT) 131 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) [all...] |
draw_pt_emit.c | 45 const struct vertex_info *vinfo; member in struct:pt_emit 55 const struct vertex_info *vinfo; local 73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); 78 for (i = 0; i < vinfo->num_attribs; i++) { 82 unsigned src_offset = (vinfo->attrib[i].src_index * 4 * sizeof(float) ); 84 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); 85 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); 90 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { 106 hw_key.nr_elements = vinfo->num_attribs [all...] |
draw_pt_fetch_shade_emit.c | 63 const struct vertex_info *vinfo; member in struct:fetch_shade_emit 77 const struct vertex_info *vinfo; local 89 fse->vinfo = vinfo = draw->render->get_vertex_info(draw->render); 91 fse->key.output_stride = vinfo->size * 4; 92 fse->key.nr_outputs = vinfo->num_attribs; 127 for (i = 0; i < vinfo->num_attribs; i++) { 128 unsigned emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); 137 fse->key.element[i].out.format = vinfo->attrib[i].emit; 138 fse->key.element[i].out.vs_output = vinfo->attrib[i].src_index [all...] |
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_vertex.c | 43 * vinfo->size field. 46 draw_compute_vertex_size(struct vertex_info *vinfo) 50 vinfo->size = 0; 51 for (i = 0; i < vinfo->num_attribs; i++) 52 vinfo->size += draw_translate_vinfo_size(vinfo->attrib[i].emit); 54 assert(vinfo->size % 4 == 0); 56 vinfo->size /= 4; 61 draw_dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data) 65 for (i = 0; i < vinfo->num_attribs; i++) [all...] |
draw_vertex.h | 125 draw_emit_vertex_attr(struct vertex_info *vinfo, 130 const uint n = vinfo->num_attribs; 131 assert(n < Elements(vinfo->attrib)); 132 vinfo->attrib[n].emit = emit; 133 vinfo->attrib[n].interp_mode = interp; 134 vinfo->attrib[n].src_index = src_index; 135 vinfo->num_attribs++; 140 extern void draw_compute_vertex_size(struct vertex_info *vinfo); 142 void draw_dump_emitted_vertex(const struct vertex_info *vinfo,
|
draw_pt_fetch_emit.c | 80 const struct vertex_info *vinfo; member in struct:fetch_emit_middle_end 97 const struct vertex_info *vinfo; local 108 vinfo = feme->vinfo = draw->render->get_vertex_info(draw->render); 116 for (i = 0; i < vinfo->num_attribs; i++) { 117 const struct pipe_vertex_element *src = &draw->pt.vertex_element[vinfo->attrib[i].src_index]; 125 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); 126 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); 128 if (vinfo->attrib[i].emit == EMIT_OMIT) 131 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) [all...] |
draw_pt_emit.c | 45 const struct vertex_info *vinfo; member in struct:pt_emit 55 const struct vertex_info *vinfo; local 73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); 78 for (i = 0; i < vinfo->num_attribs; i++) { 82 unsigned src_offset = (vinfo->attrib[i].src_index * 4 * sizeof(float) ); 84 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); 85 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); 90 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { 106 hw_key.nr_elements = vinfo->num_attribs [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
i915_state_derived.c | 61 struct vertex_info vinfo; local 68 memset(&vinfo, 0, sizeof(vinfo)); 110 draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_LINEAR, src); 111 vinfo.hwfmt[0] |= S4_VFMT_XYZW; 112 vinfo.attrib[0].emit = EMIT_4F; 115 draw_emit_vertex_attr(&vinfo, EMIT_3F, INTERP_LINEAR, src); 116 vinfo.hwfmt[0] |= S4_VFMT_XYZ; 117 vinfo.attrib[0].emit = EMIT_3F; 126 draw_emit_vertex_attr(&vinfo, EMIT_4UB_BGRA, colorInterp, src) [all...] |
/external/mesa3d/src/gallium/drivers/i915/ |
i915_state_derived.c | 61 struct vertex_info vinfo; local 68 memset(&vinfo, 0, sizeof(vinfo)); 110 draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_LINEAR, src); 111 vinfo.hwfmt[0] |= S4_VFMT_XYZW; 112 vinfo.attrib[0].emit = EMIT_4F; 115 draw_emit_vertex_attr(&vinfo, EMIT_3F, INTERP_LINEAR, src); 116 vinfo.hwfmt[0] |= S4_VFMT_XYZ; 117 vinfo.attrib[0].emit = EMIT_3F; 126 draw_emit_vertex_attr(&vinfo, EMIT_4UB_BGRA, colorInterp, src) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/ |
SDL_fbvideo.c | 161 struct fb_var_screeninfo *vinfo); 318 static int read_fbmodes_mode(FILE *f, struct fb_var_screeninfo *vinfo) 332 SDL_sscanf(line, "geometry %d %d %d %d %d", &vinfo->xres, &vinfo->yres, 333 &vinfo->xres_virtual, &vinfo->yres_virtual, &vinfo->bits_per_pixel); 337 SDL_sscanf(line, "timings %d %d %d %d %d %d %d", &vinfo->pixclock, 338 &vinfo->left_margin, &vinfo->right_margin, &vinfo->upper_margin, 500 struct fb_var_screeninfo vinfo; local 943 struct fb_var_screeninfo vinfo; local 1002 struct fb_var_screeninfo vinfo; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/fbdev/ |
native_fbdev.c | 120 vinfo_to_format(const struct fb_var_screeninfo *vinfo) 125 switch (vinfo->bits_per_pixel) { 127 if (vinfo->red.length == 8 && 128 vinfo->green.length == 8 && 129 vinfo->blue.length == 8) { 130 format = (vinfo->transp.length == 8) ? 135 if (vinfo->red.length == 5 && 136 vinfo->green.length == 6 && 137 vinfo->blue.length == 5 && 138 vinfo->transp.length == 0 199 struct fb_var_screeninfo vinfo; local 253 struct fb_var_screeninfo vinfo; local [all...] |
/external/mesa3d/src/gallium/state_trackers/egl/fbdev/ |
native_fbdev.c | 120 vinfo_to_format(const struct fb_var_screeninfo *vinfo) 125 switch (vinfo->bits_per_pixel) { 127 if (vinfo->red.length == 8 && 128 vinfo->green.length == 8 && 129 vinfo->blue.length == 8) { 130 format = (vinfo->transp.length == 8) ? 135 if (vinfo->red.length == 5 && 136 vinfo->green.length == 6 && 137 vinfo->blue.length == 5 && 138 vinfo->transp.length == 0 199 struct fb_var_screeninfo vinfo; local 253 struct fb_var_screeninfo vinfo; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/ |
SDL_gsvideo.c | 285 struct ps2_screeninfo vinfo; local 301 if ( ioctl(console_fd, PS2IOC_GSCREENINFO, &vinfo) < 0 ) { 310 this->info.current_w = vinfo.w; 311 this->info.current_h = vinfo.h; 314 switch (vinfo.psm) { 322 SDL_SetError("Unknown console pixel format: %d", vinfo.psm); 325 vformat->BitsPerPixel = GS_pixelmasks[vinfo.psm].bpp; 326 vformat->Rmask = GS_pixelmasks[vinfo.psm].r; 327 vformat->Gmask = GS_pixelmasks[vinfo.psm].g; 328 vformat->Bmask = GS_pixelmasks[vinfo.psm].b 415 struct ps2_screeninfo vinfo; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_state_derived.c | 52 struct vertex_info *vinfo = &llvmpipe->vertex_info; local 67 vinfo->num_attribs = 0; 73 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); 87 llvmpipe->color_slot[idx] = (int)vinfo->num_attribs; 93 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); 103 llvmpipe->bcolor_slot[i] = (int)vinfo->num_attribs; 104 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); 115 llvmpipe->psize_slot = vinfo->num_attribs; 116 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_CONSTANT, vs_index); 119 draw_compute_vertex_size(vinfo); [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_state_derived.c | 52 struct vertex_info *vinfo = &llvmpipe->vertex_info; local 67 vinfo->num_attribs = 0; 73 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); 87 llvmpipe->color_slot[idx] = (int)vinfo->num_attribs; 93 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); 103 llvmpipe->bcolor_slot[i] = (int)vinfo->num_attribs; 104 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); 115 llvmpipe->psize_slot = vinfo->num_attribs; 116 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_CONSTANT, vs_index); 119 draw_compute_vertex_size(vinfo); [all...] |
/frameworks/base/cmds/screencap/ |
screencap.cpp | 65 static status_t vinfoToPixelFormat(const fb_var_screeninfo& vinfo, 69 switch (vinfo.bits_per_pixel) { 79 // TODO: do better decoding of vinfo here 155 struct fb_var_screeninfo vinfo; local 156 if (ioctl(fb, FBIOGET_VSCREENINFO, &vinfo) == 0) { 158 if (vinfoToPixelFormat(vinfo, &bytespp, &f) == NO_ERROR) { 159 size_t offset = (vinfo.xoffset + vinfo.yoffset*vinfo.xres) * bytespp; 160 w = vinfo.xres [all...] |
/frameworks/native/cmds/screenshot/ |
screenshot.c | 21 struct fb_var_screeninfo vinfo; local 34 if(ioctl(fb, FBIOGET_VSCREENINFO, &vinfo) < 0) { 62 bytespp = vinfo.bits_per_pixel / 8; 64 vinfo.xres, vinfo.yres, vinfo.bits_per_pixel / 4, 69 rowlen=vinfo.xres * bytespp; 77 offset = vinfo.xoffset * bytespp + vinfo.xres * vinfo.yoffset * bytespp [all...] |
/hardware/qcom/display/msm8974/liboverlay/ |
overlayWriteback.cpp | 115 fb_var_screeninfo vinfo; local 116 memset(&vinfo, 0, sizeof(fb_var_screeninfo)); 117 if(!mdp_wrapper::getVScreenInfo(mFd.getFD(), vinfo)) { 121 vinfo.xres = xres; 122 vinfo.yres = yres; 123 vinfo.xres_virtual = xres; 124 vinfo.yres_virtual = yres; 125 vinfo.xoffset = 0; 126 vinfo.yoffset = 0; 127 if(!mdp_wrapper::setVScreenInfo(mFd.getFD(), vinfo)) { [all...] |
mdpWrapper.h | 54 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 57 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 114 void dump(const char* const s, const fb_var_screeninfo& vinfo); 128 inline bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo) { 130 if (ioctl(fd, FBIOGET_VSCREENINFO, &vinfo) < 0) { 138 inline bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo) { 140 if (ioctl(fd, FBIOPUT_VSCREENINFO, &vinfo) < 0) { 352 inline void dump(const char* const s, const fb_var_screeninfo& vinfo) { 354 s, vinfo.xres, vinfo.yres) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_draw_feedback.c | 60 struct vertex_info vinfo; 63 memset(&vinfo, 0, sizeof(vinfo)); 67 vinfo.num_attribs = 1; 68 vinfo.format[0] = FORMAT_4F; 69 vinfo.interp_mode[0] = INTERP_LINEAR; 74 vinfo.num_attribs = st->state.vs->cso->state.num_outputs; 75 for (i = 0; i < vinfo.num_attribs; i++) { 76 vinfo.format[i] = FORMAT_4F; 77 vinfo.interp_mode[i] = INTERP_LINEAR [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_draw_feedback.c | 60 struct vertex_info vinfo; 63 memset(&vinfo, 0, sizeof(vinfo)); 67 vinfo.num_attribs = 1; 68 vinfo.format[0] = FORMAT_4F; 69 vinfo.interp_mode[0] = INTERP_LINEAR; 74 vinfo.num_attribs = st->state.vs->cso->state.num_outputs; 75 for (i = 0; i < vinfo.num_attribs; i++) { 76 vinfo.format[i] = FORMAT_4F; 77 vinfo.interp_mode[i] = INTERP_LINEAR [all...] |
/hardware/qcom/display/msm8960/liboverlay/ |
mdpWrapper.h | 52 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 55 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 97 void dump(const char* const s, const fb_var_screeninfo& vinfo); 110 inline bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo) { 111 if (ioctl(fd, FBIOGET_VSCREENINFO, &vinfo) < 0) { 119 inline bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo) { 120 if (ioctl(fd, FBIOPUT_VSCREENINFO, &vinfo) < 0) { 264 inline void dump(const char* const s, const fb_var_screeninfo& vinfo) { 266 s, vinfo.xres, vinfo.yres) [all...] |
/hardware/qcom/display/msm8x26/liboverlay/ |
mdpWrapper.h | 52 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 55 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 97 void dump(const char* const s, const fb_var_screeninfo& vinfo); 110 inline bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo) { 111 if (ioctl(fd, FBIOGET_VSCREENINFO, &vinfo) < 0) { 119 inline bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo) { 120 if (ioctl(fd, FBIOPUT_VSCREENINFO, &vinfo) < 0) { 264 inline void dump(const char* const s, const fb_var_screeninfo& vinfo) { 266 s, vinfo.xres, vinfo.yres) [all...] |