From: Vladimir Dergachev Date: Sat, 2 Jul 2005 01:09:10 +0000 (+0000) Subject: Expose the fact that we do not do either selection of feedback buffers - either with... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1c684b0f3860099b9e6e77df4451bb61474736b;p=mesa.git Expose the fact that we do not do either selection of feedback buffers - either with software or hardware rendering. --- diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index a4e8915ad5a..047a63e2866 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -613,6 +613,8 @@ static void r300_check_render(GLcontext *ctx, struct tnl_pipeline_stage *stage) //FALLBACK_IF(ctx->Polygon.SmoothFlag); // GL_POLYGON_SMOOTH disabling to get blender going FALLBACK_IF(ctx->Polygon.StippleFlag); // GL_POLYGON_STIPPLE FALLBACK_IF(ctx->Multisample.Enabled); // GL_MULTISAMPLE_ARB + + FALLBACK_IF(ctx->RenderMode != GL_RENDER); // We do not do SELECT or FEEDBACK (yet ?) #if 0 /* ut2k3 fails to start if this is on */ /* One step at a time - let one texture pass.. */ diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index c3fb5fdce60..2280be36560 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -2272,6 +2272,13 @@ void r300InitState(r300ContextPtr r300) r300ResetHwState(r300); } +static void r300RenderMode( GLcontext *ctx, GLenum mode ) +{ + r300ContextPtr rmesa = R300_CONTEXT(ctx); + WARN_ONCE("TODO: fallback properly when rendering mode is not GL_RENDER\n" + "\tThe way things are now neither selection nor feedback modes work\n") +// FALLBACK( rmesa, R300_FALLBACK_RENDER_MODE, (mode != GL_RENDER) ); +} /** * Initialize driver's state callback functions @@ -2307,5 +2314,7 @@ void r300InitStateFuncs(struct dd_function_table* functions) functions->PolygonOffset = r300PolygonOffset; functions->PolygonMode = r300PolygonMode; + + functions->RenderMode = r300RenderMode; }