diff options
author | Kenneth Graunke <[email protected]> | 2013-07-03 23:32:20 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-09 14:09:26 -0700 |
commit | e3c2bb1eb4ef73c1c9576f0d5b747605b5de47ef (patch) | |
tree | 554cd57e8b2d1798804bd3a8d2cd19dcfee2dc28 /src/mesa/drivers/dri/i965/intel_fbo.c | |
parent | d5b4a3f5a34626e9841993900922384698ee61b8 (diff) |
i965: Shorten context base class dereference chains.
ctx->DrawBuffer is much more sensible than brw->intel.ctx.DrawBuffer.
Signed-off-by: Kenneth Graunke <[email protected]>
Acked-by: Chris Forbes <[email protected]>
Acked-by: Paul Berry <[email protected]>
Acked-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_fbo.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 44f692099b3..d443402aa7b 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -204,9 +204,9 @@ intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer * except they're less useful because you can't texture with * them. */ - rb->Format = intel->ctx.Driver.ChooseTextureFormat(ctx, GL_TEXTURE_2D, - internalFormat, - GL_NONE, GL_NONE); + rb->Format = ctx->Driver.ChooseTextureFormat(ctx, GL_TEXTURE_2D, + internalFormat, + GL_NONE, GL_NONE); break; case GL_STENCIL_INDEX: case GL_STENCIL_INDEX1_EXT: @@ -879,15 +879,15 @@ intel_renderbuffer_move_to_temp(struct brw_context *brw, void intel_fbo_init(struct brw_context *brw) { - struct intel_context *intel = &brw->intel; - intel->ctx.Driver.NewFramebuffer = intel_new_framebuffer; - intel->ctx.Driver.NewRenderbuffer = intel_new_renderbuffer; - intel->ctx.Driver.MapRenderbuffer = intel_map_renderbuffer; - intel->ctx.Driver.UnmapRenderbuffer = intel_unmap_renderbuffer; - intel->ctx.Driver.RenderTexture = intel_render_texture; - intel->ctx.Driver.FinishRenderTexture = intel_finish_render_texture; - intel->ctx.Driver.ValidateFramebuffer = intel_validate_framebuffer; - intel->ctx.Driver.BlitFramebuffer = intel_blit_framebuffer; - intel->ctx.Driver.EGLImageTargetRenderbufferStorage = + struct dd_function_table *dd = &brw->intel.ctx.Driver; + dd->NewFramebuffer = intel_new_framebuffer; + dd->NewRenderbuffer = intel_new_renderbuffer; + dd->MapRenderbuffer = intel_map_renderbuffer; + dd->UnmapRenderbuffer = intel_unmap_renderbuffer; + dd->RenderTexture = intel_render_texture; + dd->FinishRenderTexture = intel_finish_render_texture; + dd->ValidateFramebuffer = intel_validate_framebuffer; + dd->BlitFramebuffer = intel_blit_framebuffer; + dd->EGLImageTargetRenderbufferStorage = intel_image_target_renderbuffer_storage; } |