summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-11-05 21:34:26 -0800
committerIan Romanick <[email protected]>2014-01-20 11:31:58 -0800
commit42f916e1507f2a5b3da002936418ffe91925104f (patch)
treed1cb055344c8ddf4d084ae6ec2a31a2d006c74a9 /src/mesa/main/viewport.h
parent3eb135d1c72487619ec4ba2338a90b73c7bcda0d (diff)
mesa: Refactor depth range setting even more
Create an internal function that just writes data into the depth range. In future patches this will see more use because we only want to call dd_function_table::DepthRange once after setting all of the depth ranges instead of once per depth range. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/viewport.h')
-rw-r--r--src/mesa/main/viewport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h
index b4eb5217cd1..44bca1b3a1a 100644
--- a/src/mesa/main/viewport.h
+++ b/src/mesa/main/viewport.h
@@ -46,6 +46,9 @@ _mesa_DepthRange(GLclampd nearval, GLclampd farval);
extern void GLAPIENTRY
_mesa_DepthRangef(GLclampf nearval, GLclampf farval);
+extern void
+_mesa_set_depth_range(struct gl_context *ctx, unsigned idx,
+ GLclampd nearval, GLclampd farval);
extern void
_mesa_init_viewport(struct gl_context *ctx);