nouveau: bypass_vs_clip_and_viewport
authorYounes Manton <younes.m@gmail.com>
Sun, 15 Mar 2009 00:19:47 +0000 (20:19 -0400)
committerYounes Manton <younes.m@gmail.com>
Sun, 15 Mar 2009 00:19:47 +0000 (20:19 -0400)
src/gallium/drivers/nv30/nv30_state_viewport.c
src/gallium/drivers/nv40/nv40_state_viewport.c
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/state_trackers/g3dvl/vl_basic_csc.c
src/gallium/state_trackers/g3dvl/vl_context.c

index 4b8300d21c48928d28d99af9c1eb22476949b109..c3eb413dac69178a41d20a507df3ae94e3b2b29d 100644 (file)
@@ -7,7 +7,8 @@ nv30_state_viewport_validate(struct nv30_context *nv30)
        struct nouveau_stateobj *so;
        unsigned bypass;
 
-       if (/*nv30->render_mode == HW &&*/ !nv30->rasterizer->pipe.bypass_clipping)
+       if (/*nv30->render_mode == HW &&*/
+           !nv30->rasterizer->pipe.bypass_vs_clip_and_viewport)
                bypass = 0;
        else
                bypass = 1;
index 3d14d203081f1c1b55e568d48e12ae78ecfeb6b4..665d2d5fcaca698125438fdad42eb0d68aae9763 100644 (file)
@@ -7,7 +7,8 @@ nv40_state_viewport_validate(struct nv40_context *nv40)
        struct nouveau_stateobj *so;
        unsigned bypass;
 
-       if (nv40->render_mode == HW && !nv40->rasterizer->pipe.bypass_clipping)
+       if (nv40->render_mode == HW &&
+           !nv40->rasterizer->pipe.bypass_vs_clip_and_viewport)
                bypass = 0;
        else
                bypass = 1;
index b7958f19bc8bc5cb950e8cc99f03b8a83b0527ee..85098a78a25711045543d90427a34b8197e65a60 100644 (file)
@@ -254,7 +254,7 @@ scissor_uptodate:
        if (nv50->dirty & NV50_NEW_VIEWPORT) {
                unsigned bypass;
 
-               if (!nv50->rasterizer->pipe.bypass_clipping)
+               if (!nv50->rasterizer->pipe.bypass_vs_clip_and_viewport)
                        bypass = 0;
                else
                        bypass = 1;
index 38cfd5d7f1ecda234c07d13b4a706d1a48cd2415..b61b49a2f8a439ef685d9620942835a342d7308f 100644 (file)
@@ -371,7 +371,7 @@ static int vlCreateVertexShader
        unsigned int                    ti;
        unsigned int                    i;
 
-       assert(context);
+       assert(csc);
 
        pipe = csc->pipe;
        tokens = (struct tgsi_token*)MALLOC(max_tokens * sizeof(struct tgsi_token));
@@ -458,7 +458,7 @@ static int vlCreateFragmentShader
        unsigned int                    ti;
        unsigned int                    i;
 
-       assert(context);
+       assert(csc);
 
        pipe = csc->pipe;
        tokens = (struct tgsi_token*)MALLOC(max_tokens * sizeof(struct tgsi_token));
index 65ddb9f01ef09b82b463ae8fe37050ce8ecfc5d3..1d8ad0b046905ffa2598239c465fdb28abc2239a 100644 (file)
@@ -41,9 +41,7 @@ static int vlInitCommon(struct vlContext *context)
        rast.line_stipple_factor = 0;
        rast.line_stipple_pattern = 0;
        rast.line_last_pixel = 0;
-       /* Don't need clipping, but viewport mapping done here */
-       rast.bypass_clipping = 0;
-       rast.bypass_vs = 0;
+       rast.bypass_vs_clip_and_viewport = 0;
        rast.origin_lower_left = 0;
        rast.line_width = 1;
        rast.point_smooth = 0;