Home
last modified time | relevance | path

Searched refs:framebuffer (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/external/mesa3d/src/mesa/state_tracker/
Dst_atom_framebuffer.c58 update_framebuffer_size(struct pipe_framebuffer_state *framebuffer, in update_framebuffer_size() argument
64 framebuffer->width = MIN2(framebuffer->width, surface->width); in update_framebuffer_size()
65 framebuffer->height = MIN2(framebuffer->height, surface->height); in update_framebuffer_size()
110 struct pipe_framebuffer_state *framebuffer = &st->state.framebuffer; in update_framebuffer_state() local
131 framebuffer->width = _mesa_geometric_width(fb); in update_framebuffer_state()
132 framebuffer->height = _mesa_geometric_height(fb); in update_framebuffer_state()
133 framebuffer->samples = _mesa_geometric_samples(fb); in update_framebuffer_state()
134 framebuffer->layers = _mesa_geometric_layers(fb); in update_framebuffer_state()
139 framebuffer->nr_cbufs = fb->_NumColorDrawBuffers; in update_framebuffer_state()
142 pipe_surface_reference(&framebuffer->cbufs[i], NULL); in update_framebuffer_state()
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_surface.c60 if (sp->framebuffer.cbufs[i] != cb) { in softpipe_set_framebuffer_state()
65 pipe_surface_reference(&sp->framebuffer.cbufs[i], cb); in softpipe_set_framebuffer_state()
72 sp->framebuffer.nr_cbufs = fb->nr_cbufs; in softpipe_set_framebuffer_state()
75 if (sp->framebuffer.zsbuf != fb->zsbuf) { in softpipe_set_framebuffer_state()
80 pipe_surface_reference(&sp->framebuffer.zsbuf, fb->zsbuf); in softpipe_set_framebuffer_state()
91 (sp->framebuffer.zsbuf) ? in softpipe_set_framebuffer_state()
92 sp->framebuffer.zsbuf->format : PIPE_FORMAT_NONE); in softpipe_set_framebuffer_state()
95 sp->framebuffer.width = fb->width; in softpipe_set_framebuffer_state()
96 sp->framebuffer.height = fb->height; in softpipe_set_framebuffer_state()
97 sp->framebuffer.samples = fb->samples; in softpipe_set_framebuffer_state()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_surface.c54 boolean changed = !util_framebuffer_state_equal(&lp->framebuffer, fb); in llvmpipe_set_framebuffer_state()
70 if (lp->framebuffer.zsbuf && lp->framebuffer.zsbuf->context != pipe) { in llvmpipe_set_framebuffer_state()
75 if (lp->framebuffer.cbufs[i] && in llvmpipe_set_framebuffer_state()
76 lp->framebuffer.cbufs[i]->context != pipe) { in llvmpipe_set_framebuffer_state()
82 util_copy_framebuffer_state(&lp->framebuffer, fb); in llvmpipe_set_framebuffer_state()
85 pipe_surface_reference(&lp->framebuffer.zsbuf, NULL); in llvmpipe_set_framebuffer_state()
100 lp_setup_bind_framebuffer( lp->setup, &lp->framebuffer ); in llvmpipe_set_framebuffer_state()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_emit.c316 … (ctx->framebuffer.GL_MULTI_SAMPLE_CONFIG & VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES__MASK)) { in etna_emit_state()
368 val |= ctx->framebuffer.GL_MULTI_SAMPLE_CONFIG; in etna_emit_state()
467 MAX2(ctx->framebuffer.SE_SCISSOR_LEFT, ctx->viewport.SE_SCISSOR_LEFT); in etna_emit_state()
469 MAX2(ctx->framebuffer.SE_SCISSOR_TOP, ctx->viewport.SE_SCISSOR_TOP); in etna_emit_state()
471 MIN2(ctx->framebuffer.SE_SCISSOR_RIGHT, ctx->viewport.SE_SCISSOR_RIGHT); in etna_emit_state()
473 MIN2(ctx->framebuffer.SE_SCISSOR_BOTTOM, ctx->viewport.SE_SCISSOR_BOTTOM); in etna_emit_state()
499 MIN2(ctx->framebuffer.SE_CLIP_RIGHT, ctx->viewport.SE_CLIP_RIGHT); in etna_emit_state()
501 MIN2(ctx->framebuffer.SE_CLIP_BOTTOM, ctx->viewport.SE_CLIP_BOTTOM); in etna_emit_state()
515 /*00E04*/ EMIT_STATE(RA_MULTISAMPLE_UNK00E04, ctx->framebuffer.RA_MULTISAMPLE_UNK00E04); in etna_emit_state()
517 … /*00E10*/ EMIT_STATE(RA_MULTISAMPLE_UNK00E10(x), ctx->framebuffer.RA_MULTISAMPLE_UNK00E10[x]); in etna_emit_state()
[all …]
/external/autotest/client/cros/graphics/
Dgbm.py202 framebuffer = crtc.fb()
208 framebuffer.getFD(), framebuffer.width,
209 framebuffer.height, framebuffer.pitch,
211 map_void_p, stride_bytes = bo.map(0, 0, framebuffer.width,
212 framebuffer.height,
215 map_ints_type = c_int * (stride_pixels * framebuffer.height)
219 image = Image.new("RGB", (framebuffer.width, framebuffer.height))
/external/mesa3d/src/gallium/drivers/i915/
Di915_clear.c61 struct pipe_surface *cbuf = i915->framebuffer.cbufs[0]; in i915_clear_emit()
86 struct pipe_surface *zbuf = i915->framebuffer.zsbuf; in i915_clear_emit()
107 struct pipe_surface *zbuf = i915->framebuffer.zsbuf; in i915_clear_emit()
223 struct pipe_framebuffer_state *framebuffer = in i915_clear_blitter() local
224 &i915_context(pipe)->framebuffer; in i915_clear_blitter()
227 for (i = 0; i < framebuffer->nr_cbufs; i++) { in i915_clear_blitter()
229 struct pipe_surface *ps = framebuffer->cbufs[i]; in i915_clear_blitter()
239 struct pipe_surface *ps = framebuffer->zsbuf; in i915_clear_blitter()
257 0, 0, i915->framebuffer.width, i915->framebuffer.height); in i915_clear_render()
Di915_state_static.c97 struct pipe_surface *cbuf_surface = i915->framebuffer.cbufs[0]; in update_framebuffer()
98 struct pipe_surface *depth_surface = i915->framebuffer.zsbuf; in update_framebuffer()
142 draw_size = (i915->framebuffer.width - 1 + x) | in update_framebuffer()
143 ((i915->framebuffer.height - 1 + y) << 16); in update_framebuffer()
199 struct pipe_surface *cbuf_surface = i915->framebuffer.cbufs[0]; in update_dst_buf_vars()
200 struct pipe_surface *depth_surface = i915->framebuffer.zsbuf; in update_dst_buf_vars()
/external/mesa3d/src/mesa/main/
Dfbobject.h197 _mesa_IsFramebuffer(GLuint framebuffer);
200 _mesa_BindFramebuffer(GLenum target, GLuint framebuffer);
203 _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer);
218 _mesa_CheckNamedFramebufferStatus(GLuint framebuffer, GLenum target);
238 _mesa_NamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment,
246 _mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
255 _mesa_NamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment,
263 _mesa_GetNamedFramebufferAttachmentParameteriv(GLuint framebuffer,
268 _mesa_NamedFramebufferParameteri(GLuint framebuffer, GLenum pname,
272 _mesa_GetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname,
[all …]
Dclear.h55 _mesa_ClearNamedFramebufferiv(GLuint framebuffer, GLenum buffer,
62 _mesa_ClearNamedFramebufferuiv(GLuint framebuffer, GLenum buffer,
69 _mesa_ClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer,
77 _mesa_ClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer,
Dbuffers.h47 _mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);
53 _mesa_NamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n,
73 _mesa_NamedFramebufferReadBuffer(GLuint framebuffer, GLenum src);
/external/mesa3d/src/gallium/tests/trivial/
Dtri.c72 struct pipe_framebuffer_state framebuffer; member
164 memset(&p->framebuffer, 0, sizeof(p->framebuffer)); in init_prog()
165 p->framebuffer.width = WIDTH; in init_prog()
166 p->framebuffer.height = HEIGHT; in init_prog()
167 p->framebuffer.nr_cbufs = 1; in init_prog()
168 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog()
229 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in close_prog()
243 cso_set_framebuffer(p->cso, &p->framebuffer); in draw()
269 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]); in draw()
Dquad-tex.c75 struct pipe_framebuffer_state framebuffer; member
219 memset(&p->framebuffer, 0, sizeof(p->framebuffer)); in init_prog()
220 p->framebuffer.width = WIDTH; in init_prog()
221 p->framebuffer.height = HEIGHT; in init_prog()
222 p->framebuffer.nr_cbufs = 1; in init_prog()
223 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog()
286 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in close_prog()
304 cso_set_framebuffer(p->cso, &p->framebuffer); in draw()
336 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]); in draw()
/external/deqp/doc/testspecs/GLES3/
Dfunctional.fbo.invalidate.txt25 + Invalidating whole and sub-framebuffer
27 + Default framebuffer and framebuffer objects
29 + Rendering to framebuffer after invalidate
31 + Invalidating multisample framebuffer objects
39 Test cases exercise framebuffer invalidate API in various ways. Results are
Dfunctional.rasterizer_discard.txt31 - Discard test for default framebuffer
32 - Discard test for default framebuffer with scissor test enabled
33 - Discard test for a framebuffer object
45 Finally, framebuffer pixels are read. If red color is present or blue
49 This procedure is performed for both the default framebuffer and an FBO
51 framebuffer discards are tested with scissor test enabled.
Dfunctional.fbo.srgb.txt19 sRGB framebuffer tests
25 + sRGB conversion when writing to framebuffer
26 + Blending with sRGB framebuffer
30 + All blend modes when rendering to sRGB framebuffer
Dfunctional.fbo.completeness.txt44 These tests check that the implementation reports framebuffer completeness
45 status correctly. Most test cases create a single framebuffer object, create
69 renderbuffers with suitable formats to none, some or all of the framebuffer's
88 The "size.zero" test case creates a framebuffer object with a single
93 The "size.distinct" test case creates a framebuffer object with two
99 array textures or 3D textures) and attach them to framebuffer objects with
100 glFramebufferTextureLayer. The framebuffer status is expected to be
106 numbers of samples. The framebuffer status is expected to be
112 requested, a framebuffer object whose attachments have requested a
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_mlaa.c94 w = p->framebuffer.width; in pp_jimenezmlaa_run()
95 h = p->framebuffer.height; in pp_jimenezmlaa_run()
102 if (dimensions[0] != p->framebuffer.width || in pp_jimenezmlaa_run()
103 dimensions[1] != p->framebuffer.height) { in pp_jimenezmlaa_run()
104 constants[0] = 1.0f / p->framebuffer.width; in pp_jimenezmlaa_run()
105 constants[1] = 1.0f / p->framebuffer.height; in pp_jimenezmlaa_run()
108 dimensions[0] = p->framebuffer.width; in pp_jimenezmlaa_run()
109 dimensions[1] = p->framebuffer.height; in pp_jimenezmlaa_run()
124 p->framebuffer.zsbuf = ppq->stencils; in pp_jimenezmlaa_run()
195 w, h, 0, p->framebuffer.cbufs[0], in pp_jimenezmlaa_run()
[all …]
Dpp_run.c97 if (in->width0 != ppq->p->framebuffer.width || in pp_run()
98 in->height0 != ppq->p->framebuffer.height) { in pp_run()
106 unsigned int w = ppq->p->framebuffer.width; in pp_run()
107 unsigned int h = ppq->p->framebuffer.height; in pp_run()
218 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, out, &p->surf); in pp_filter_setup_out()
225 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in pp_filter_end_pass()
295 cso_set_framebuffer(p->cso, &p->framebuffer); in pp_filter_set_fb()
302 cso_set_framebuffer(p->cso, &p->framebuffer); in pp_filter_set_clear_fb()
/external/deqp/modules/gles31/functional/
Des31fFboNoAttachmentTests.cpp67 bool checkFramebufferSize (TestLog& log, const glu::RenderContext& renderCtx, GLuint framebuffer, c… in checkFramebufferSize() argument
101 gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer); in checkFramebufferSize()
174 …rRenderable (TestLog& log, const glu::RenderContext& renderCtx, GLuint framebuffer, const IVec2& s… in checkFramebufferRenderable() argument
203 gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer); in checkFramebufferRenderable()
292 GLuint framebuffer = 0; in iterate() local
294 gl.genFramebuffers(1, &framebuffer); in iterate()
295 gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer); in iterate()
308 gl.deleteFramebuffers(1, &framebuffer); in iterate()
364 GLuint framebuffer = 0; in iterate() local
369 gl.genFramebuffers(1, &framebuffer); in iterate()
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_draw.c113 job->draw_width = vc4->framebuffer.width; in vc4_start_draw()
114 job->draw_height = vc4->framebuffer.height; in vc4_start_draw()
452 if (vc4->zsa && vc4->framebuffer.zsbuf) { in vc4_draw_vbo()
454 vc4_resource(vc4->framebuffer.zsbuf->texture); in vc4_draw_vbo()
509 vc4_resource(vc4->framebuffer.cbufs[0]->texture); in vc4_clear()
512 if (vc4_rt_format_is_565(vc4->framebuffer.cbufs[0]->format)) { in vc4_clear()
523 pack_rgba(vc4->framebuffer.cbufs[0]->format, in vc4_clear()
532 vc4_resource(vc4->framebuffer.zsbuf->texture); in vc4_clear()
542 util_format_is_depth_and_stencil(vc4->framebuffer.zsbuf->format)) { in vc4_clear()
547 vc4->framebuffer.width, in vc4_clear()
[all …]
/external/skia/src/gpu/gl/
DGrGLCreateNullInterface.cpp300 Framebuffer* framebuffer = fFramebufferManager.create(); in genFramebuffers() local
301 framebuffers[i] = framebuffer->id(); in genFramebuffers()
305 GrGLvoid bindFramebuffer(GrGLenum target, GrGLuint framebuffer) override { in bindFramebuffer() argument
309 fCurrDrawFramebuffer = framebuffer; in bindFramebuffer()
312 fCurrReadFramebuffer = framebuffer; in bindFramebuffer()
326 Framebuffer* framebuffer = fFramebufferManager.lookUp(ids[i]); in deleteFramebuffers() local
327 fFramebufferManager.free(framebuffer); in deleteFramebuffers()
403 Framebuffer* framebuffer = fFramebufferManager.lookUp(id); in framebufferRenderbuffer() local
409 framebuffer->setAttachment(attachment, renderbuffer); in framebufferRenderbuffer()
412 GrGLvoid namedFramebufferRenderbuffer(GrGLuint framebuffer, GrGLenum attachment, in namedFramebufferRenderbuffer() argument
[all …]
/external/skia/src/gpu/vk/
DGrVkFramebuffer.h29 VkFramebuffer framebuffer() const { return fFramebuffer; } in framebuffer() function
38 GrVkFramebuffer(VkFramebuffer framebuffer) : INHERITED(), fFramebuffer(framebuffer) {} in GrVkFramebuffer() argument
/external/mesa3d/src/glx/
Ddri_glx.c339 __DRIframebuffer framebuffer; in CallCreateNewScreen() local
357 framebuffer.base = MAP_FAILED; in CallCreateNewScreen()
358 framebuffer.dev_priv = NULL; in CallCreateNewScreen()
359 framebuffer.size = 0; in CallCreateNewScreen()
418 &framebuffer.size, &framebuffer.stride, in CallCreateNewScreen()
419 &framebuffer.dev_priv_size, in CallCreateNewScreen()
420 &framebuffer.dev_priv)) { in CallCreateNewScreen()
425 framebuffer.width = DisplayWidth(dpy, scrn); in CallCreateNewScreen()
426 framebuffer.height = DisplayHeight(dpy, scrn); in CallCreateNewScreen()
429 status = drmMap(fd, hFB, framebuffer.size, in CallCreateNewScreen()
[all …]
/external/deqp/doc/testspecs/GL3/
Dfunctional.texture_buffers.txt47 framebuffer using the texture buffer as different data sources. The texture
53 default framebuffer using it as fragment texture.
56 to the default framebuffer.
59 framebuffer, modify it and render it again to default framebuffer as fragment
/external/deqp/doc/testspecs/GLES31/
Dfunctional.texture_buffers.txt50 framebuffer using the texture buffer as different data sources. The texture
56 default framebuffer using it as fragment texture.
59 to the default framebuffer.
62 framebuffer, modify it and render it again to default framebuffer as fragment

12345678910>>...16