OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc9a1d
)
i965: move declaration before code
author
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 23:15:00 +0000
(17:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 13 Mar 2009 00:25:09 +0000
(18:25 -0600)
src/mesa/drivers/dri/i965/brw_sf_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_sf_state.c
b/src/mesa/drivers/dri/i965/brw_sf_state.c
index
e96d535
..
93a9686
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_sf_state.c
+++ b/
src/mesa/drivers/dri/i965/brw_sf_state.c
@@
-44,6
+44,7
@@
static void upload_sf_vp(struct brw_context *brw)
struct brw_sf_viewport sfv;
GLfloat y_scale, y_bias;
const GLboolean render_to_fbo = (ctx->DrawBuffer->Name != 0);
+ const GLfloat *v = ctx->Viewport._WindowMap.m;
memset(&sfv, 0, sizeof(sfv));
@@
-58,8
+59,6
@@
static void upload_sf_vp(struct brw_context *brw)
/* _NEW_VIEWPORT */
- const GLfloat *v = ctx->Viewport._WindowMap.m;
-
sfv.viewport.m00 = v[MAT_SX];
sfv.viewport.m11 = v[MAT_SY] * y_scale;
sfv.viewport.m22 = v[MAT_SZ] * depth_scale;