Lines Matching defs:framebuffer
43 #include "framebuffer.h"
96 /* We bind this framebuffer when applications pass a NULL
197 * GL_INVALID_OPERATION if the framebuffer doesn't exist.
208 "%s(non-existent framebuffer %u)", func, id);
217 * Mark the given framebuffer as invalid. This will force the
218 * test for framebuffer completeness to be done before the framebuffer
230 * framebuffer target, such as GL_DRAW_FRAMEBUFFER.
320 * window-system framebuffer (not user-created framebuffer objects).
374 * "Since this command can only query a single framebuffer
385 * "If the default framebuffer is bound to target, then attachment must
394 * "If the default framebuffer is bound to <target>, then <attachment>
453 /* Invalidate buffer state so that the pipe's framebuffer state
472 /* restore previous framebuffer state */
545 * to share most of their framebuffer rendering code between winsys,
657 * Attach a renderbuffer object to a framebuffer object.
697 * Return true if the framebuffer has a combined depth/stencil
958 /* Mutable non base level texture as framebuffer attachment
1173 * Check that the framebuffer configuration is valid in terms of what
1253 * Test if the given framebuffer object is complete and update its
1257 * Also update the framebuffer's Width and Height fields if the
1258 * framebuffer is complete.
1283 /* we're changing framebuffer fields here */
1343 * CTS tests expect unsupported framebuffer status instead of incomplete.
1522 * "If any framebuffer attachment is layered, all populated
1547 fbo_incomplete(ctx, "layered framebuffer has mismatched targets", i);
1552 "framebuffer attachment layer mode is inconsistent",
1704 * renderbuffers/textures are different sizes, the framebuffer
1712 /* finally, update the visual info for the framebuffer */
1850 "%s(invalid pname=0x%x for default framebuffer)", func, pname);
2010 * if the default framebuffer is bound to target and pname is not one
2014 * For OpenGL ES, using default framebuffer raises INVALID_OPERATION
2037 "%s(invalid pname=0x%x for default framebuffer)", func, pname);
2131 * the framebuffer.
2157 * framebuffer is considered complete or incomplete:
2162 * containing an image that is attached to a framebuffer object
2163 * that is bound to the framebuffer."
2203 * bound framebuffer, then it is as if FramebufferRenderbuffer
2206 * currently bound framebuffer. In other words, this
2208 * points in the currently bound framebuffer. Note that the
3168 _mesa_IsFramebuffer(GLuint framebuffer)
3172 if (framebuffer) {
3173 struct gl_framebuffer *rb = _mesa_lookup_framebuffer(ctx, framebuffer);
3182 * Check if any of the attachments of the given framebuffer are textures
3205 * Examine all the framebuffer's attachments to see if any are textures.
3227 bind_framebuffer(GLenum target, GLuint framebuffer)
3251 if (framebuffer) {
3253 /* Binding a user-created framebuffer object */
3254 newDrawFb = _mesa_lookup_framebuffer(ctx, framebuffer);
3256 /* ID was reserved, but no real framebuffer object made yet */
3268 /* create new framebuffer object */
3269 newDrawFb = _mesa_new_framebuffer(ctx, framebuffer);
3274 _mesa_HashInsert(ctx->Shared->FrameBuffers, framebuffer, newDrawFb, isGenName);
3279 /* Binding the window system framebuffer (which was originally set
3308 * When a framebuffer with texture attachments is unbound, call
3310 * When a framebuffer with texture attachments is bound, call
3326 /* check if old framebuffer had any texture attachments */
3330 /* check if newly bound framebuffer has any texture attachments */
3340 _mesa_BindFramebuffer(GLenum target, GLuint framebuffer)
3345 bind_framebuffer(target, framebuffer);
3350 _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer)
3352 bind_framebuffer(target, framebuffer);
3376 /* check if deleting currently bound framebuffer object */
3521 _mesa_CheckNamedFramebufferStatus(GLuint framebuffer, GLenum target)
3527 * default framebuffer in case framebuffer = 0.
3530 * "If framebuffer is zero, then the status of the default read or
3531 * draw framebuffer (as determined by target) is returned."
3548 if (framebuffer) {
3549 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
3560 _mesa_CheckNamedFramebufferStatusEXT(GLuint framebuffer, GLenum target)
3577 if (framebuffer == 0) {
3581 fb = _mesa_lookup_framebuffer_dsa(ctx, framebuffer,
3919 /* The window-system framebuffer object is immutable */
3921 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(window-system framebuffer)",
4029 /* Get the framebuffer object */
4045 framebuffer_texture_with_dims(int dims, GLenum target, GLuint framebuffer,
4054 /* Get the framebuffer object */
4056 fb = _mesa_lookup_framebuffer_dsa(ctx, framebuffer, caller);
4162 frame_buffer_texture(GLuint framebuffer, GLenum target,
4178 /* Get the framebuffer object */
4182 fb = _mesa_lookup_framebuffer(ctx, framebuffer);
4188 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer, func);
4201 /* Get the texture object and framebuffer attachment*/
4270 _mesa_NamedFramebufferTextureLayer_no_error(GLuint framebuffer,
4275 frame_buffer_texture(framebuffer, 0, attachment, texture, level, layer,
4281 _mesa_NamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment,
4284 frame_buffer_texture(framebuffer, 0, attachment, texture, level, layer,
4307 _mesa_NamedFramebufferTexture_no_error(GLuint framebuffer, GLenum attachment,
4310 frame_buffer_texture(framebuffer, 0, attachment, texture, level, 0,
4316 _mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
4319 frame_buffer_texture(framebuffer, 0, attachment, texture, level, 0,
4325 _mesa_NamedFramebufferTexture1DEXT(GLuint framebuffer, GLenum attachment,
4328 framebuffer_texture_with_dims(1, GL_FRAMEBUFFER, framebuffer, attachment,
4335 _mesa_NamedFramebufferTexture2DEXT(GLuint framebuffer, GLenum attachment,
4338 framebuffer_texture_with_dims(2, GL_FRAMEBUFFER, framebuffer, attachment,
4345 _mesa_NamedFramebufferTexture3DEXT(GLuint framebuffer, GLenum attachment,
4349 framebuffer_texture_with_dims(3, GL_FRAMEBUFFER, framebuffer, attachment,
4367 /* Some subsequent GL commands may depend on the framebuffer's visual
4403 /* Can't attach new renderbuffers to a window system framebuffer */
4405 "%s(window-system framebuffer)", func);
4503 _mesa_NamedFramebufferRenderbuffer_no_error(GLuint framebuffer,
4510 struct gl_framebuffer *fb = _mesa_lookup_framebuffer(ctx, framebuffer);
4517 _mesa_NamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment,
4524 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
4536 _mesa_NamedFramebufferRenderbufferEXT(GLuint framebuffer, GLenum attachment,
4543 fb = _mesa_lookup_framebuffer_dsa(ctx, framebuffer,
4574 * framebuffer is bound to target. In this case querying pname
4585 * "If the framebuffer currently bound to target is zero, then
4596 "%s(window-system framebuffer)", caller);
4609 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME with the default framebuffer,
4628 /* user-created framebuffer FBO */
4636 * "An INVALID_OPERATION error is generated if a framebuffer object
4684 * either no framebuffer is bound to target; or the default framebuffer
4926 _mesa_GetNamedFramebufferAttachmentParameteriv(GLuint framebuffer,
4933 if (framebuffer) {
4934 buffer = _mesa_lookup_framebuffer_err(ctx, framebuffer,
4943 * "If framebuffer is zero, then the default draw framebuffer is
4956 _mesa_GetNamedFramebufferAttachmentParameterivEXT(GLuint framebuffer,
4963 if (framebuffer) {
4964 buffer = _mesa_lookup_framebuffer_dsa(ctx, framebuffer,
4973 * "If framebuffer is zero, then the default draw framebuffer is
4986 _mesa_NamedFramebufferParameteri(GLuint framebuffer, GLenum pname,
5001 if (framebuffer) {
5002 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
5017 lookup_named_framebuffer_ext_dsa(struct gl_context *ctx, GLuint framebuffer, const char* caller)
5021 if (framebuffer) {
5024 * "The error INVALID_VALUE is generated if <framebuffer> is not
5025 * a name returned by GenFramebuffers. If a framebuffer object
5026 * named <framebuffer> does not yet exist, it will be created."
5030 * "If the framebuffer object named by the framebuffer parameter has not
5033 * BindFramebuffer creates a new framebuffer object"
5037 fb = _mesa_lookup_framebuffer(ctx, framebuffer);
5044 fb = _mesa_new_framebuffer(ctx, framebuffer);
5045 _mesa_HashInsert(ctx->Shared->FrameBuffers, framebuffer, fb, true);
5056 _mesa_NamedFramebufferParameteriEXT(GLuint framebuffer, GLenum pname,
5061 lookup_named_framebuffer_ext_dsa(ctx, framebuffer,
5073 _mesa_GetFramebufferParameterivEXT(GLuint framebuffer, GLenum pname,
5079 if (framebuffer)
5080 fb = _mesa_lookup_framebuffer_dsa(ctx, framebuffer,
5088 * The pname parameter must be one of framebuffer dependent values
5114 _mesa_GetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname,
5128 if (framebuffer)
5129 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
5142 _mesa_GetNamedFramebufferParameterivEXT(GLuint framebuffer, GLenum pname,
5147 lookup_named_framebuffer_ext_dsa(ctx, framebuffer,
5193 * framebuffer bound to <target>, it is ignored."
5428 _mesa_InvalidateNamedFramebufferSubData(GLuint framebuffer,
5438 * Framebuffer Operations, PDF page 522): "If framebuffer is zero, the
5439 * default draw framebuffer is affected."
5441 if (framebuffer) {
5442 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
5508 _mesa_InvalidateNamedFramebufferData(GLuint framebuffer,
5516 * Framebuffer Operations, PDF page 522): "If framebuffer is zero, the
5517 * default draw framebuffer is affected."
5519 if (framebuffer) {
5520 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
5683 _mesa_NamedFramebufferSampleLocationsfvARB(GLuint framebuffer, GLuint start,
5690 if (framebuffer) {
5691 fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
5713 _mesa_NamedFramebufferSampleLocationsfvARB_no_error(GLuint framebuffer,
5718 sample_locations(ctx, _mesa_lookup_framebuffer(ctx, framebuffer), start,