diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2015-11-30 16:04:08 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-09-20 20:08:12 -0700 |
commit | 8fec9fbb9f78c1cbc539b28cd914fe366fa7e344 (patch) | |
tree | e0f9ca0a5e1583801d92ac63900062ed44efeafc /src/mesa/drivers/dri/i965/intel_fbo.c | |
parent | d4bf9baa43e2cf7b4b877141ee472779ced219bf (diff) | |
download | external_mesa3d-8fec9fbb9f78c1cbc539b28cd914fe366fa7e344.zip external_mesa3d-8fec9fbb9f78c1cbc539b28cd914fe366fa7e344.tar.gz external_mesa3d-8fec9fbb9f78c1cbc539b28cd914fe366fa7e344.tar.bz2 |
i965: Rename __DRIScreen pointers to "dri_screen".
I want to use "screen" as the variable name for a struct intel_screen
pointer. This means that we can't use it for __DRIscreen pointers.
Sometimes we called it "screen", sometimes "sPriv", sometimes
"driScrnPriv", and sometimes "psp" (Pointer to Screen Private?).
The last one is particularly confusing because we use "psp" to refer to
the Gen4 PIPELINED_STATE_POINTERS packet as well.
Let's be consistent. "dri_screen" is clear, and it's not used often
enough that I'm worried about the verbosity.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_fbo.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 89bf7d1..807e3e7 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -332,12 +332,11 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx, { struct brw_context *brw = brw_context(ctx); struct intel_renderbuffer *irb; - __DRIscreen *screen; + __DRIscreen *dri_screen = brw->intelScreen->driScrnPriv; __DRIimage *image; - screen = brw->intelScreen->driScrnPriv; - image = screen->dri2.image->lookupEGLImage(screen, image_handle, - screen->loaderPrivate); + image = dri_screen->dri2.image->lookupEGLImage(dri_screen, image_handle, + dri_screen->loaderPrivate); if (image == NULL) return; |