summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600/r700_fragprog.h
diff options
context:
space:
mode:
authorAndre Maasikas <amaasikas@gmail.com>2009-12-14 16:39:19 +0200
committerAndre Maasikas <amaasikas@gmail.com>2009-12-15 09:46:57 +0200
commitbae5e7f213b7df1d7e3381e64b69beffd1243dc4 (patch)
treeb1d29407dc0ae7adebfeffb45d9b80c1db103fc2 /src/mesa/drivers/dri/r600/r700_fragprog.h
parent10f5cff6ac1ce7c7cee1a11cf5d68cae728e8f8b (diff)
r600: fix fragment.position
wpos.y seems inferted to what opengl expexts, so calculate correct value from window dimension and replace references in fragmentprog with calculated value
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_fragprog.h')
-rw-r--r--src/mesa/drivers/dri/r600/r700_fragprog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.h b/src/mesa/drivers/dri/r600/r700_fragprog.h
index e562bfa478..39c59c9201 100644
--- a/src/mesa/drivers/dri/r600/r700_fragprog.h
+++ b/src/mesa/drivers/dri/r600/r700_fragprog.h
@@ -48,6 +48,8 @@ struct r700_fragment_program
};
/* Internal */
+void insert_wpos_code(GLcontext *ctx, struct gl_fragment_program *fprog);
+
void Map_Fragment_Program(r700_AssemblerBase *pAsm,
struct gl_fragment_program *mesa_fp,
GLcontext *ctx);