summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_rasterpos.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-01-05 21:20:06 +0100
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-02-13 15:51:17 +0100
commit08c46025c87654fbc885136a2c8cc4cce902dd37 (patch)
treef90558228e20c56362c3cfa2adf839e02c10da41 /src/mesa/state_tracker/st_cb_rasterpos.c
parenta8328e3a50169c3c74656df7f63f56f061d9e751 (diff)
downloadexternal_mesa3d-08c46025c87654fbc885136a2c8cc4cce902dd37.zip
external_mesa3d-08c46025c87654fbc885136a2c8cc4cce902dd37.tar.gz
external_mesa3d-08c46025c87654fbc885136a2c8cc4cce902dd37.tar.bz2
st/mesa: add a second pipeline for compute
Compute needs a new and different validation path. Changes from v2: - make use of unreachable() instead of assert() when the pipeline is invalid - move the st_pipeline enumeration to st_context.h instead of st_api.h Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_rasterpos.c')
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 747b414..eec72f8 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -248,7 +248,7 @@ st_RasterPos(struct gl_context *ctx, const GLfloat v[4])
draw_set_rasterize_stage(st->draw, st->rastpos_stage);
/* make sure everything's up to date */
- st_validate_state(st);
+ st_validate_state(st, ST_PIPELINE_RENDER);
/* This will get set only if rastpos_point(), above, gets called */
ctx->Current.RasterPosValid = GL_FALSE;