struct nv30_context *nv30 = nv30_context(pipe);
struct nv30_blend_state *cb = hwcso;
+ if (!hwcso) {
+ return;
+ }
+
BEGIN_RING(rankine, NV34TCL_DITHER_ENABLE, 1);
OUT_RING (cb->d_enable);
struct nv30_context *nv30 = nv30_context(pipe);
unsigned unit;
+ if (!sampler) {
+ return;
+ }
+
for (unit = 0; unit < nr; unit++) {
nv30->tex_sampler[unit] = sampler[unit];
nv30->dirty_samplers |= (1 << unit);
struct nv30_context *nv30 = nv30_context(pipe);
struct nv30_rasterizer_state *rs = hwcso;
+ if (!hwcso) {
+ return;
+ }
+
BEGIN_RING(rankine, NV34TCL_SHADE_MODEL, 1);
OUT_RING (rs->shade_model);
struct nv30_context *nv30 = nv30_context(pipe);
struct nv30_depth_stencil_alpha_state *hw = hwcso;
+ if (!hwcso) {
+ return;
+ }
+
BEGIN_RING(rankine, NV34TCL_DEPTH_FUNC, 3);
OUT_RINGp ((uint32_t *)&hw->depth, 3);
BEGIN_RING(rankine, NV34TCL_STENCIL_BACK_ENABLE, 16);
struct nv30_context *nv30 = nv30_context(pipe);
struct nv30_vertex_program *vp = hwcso;
+ if (!hwcso) {
+ return;
+ }
+
nv30->vertprog.current = vp;
nv30->dirty |= NV30_NEW_VERTPROG;
}
struct nv30_context *nv30 = nv30_context(pipe);
struct nv30_fragment_program *fp = hwcso;
+ if (!hwcso) {
+ return;
+ }
+
nv30->fragprog.current = fp;
nv30->dirty |= NV30_NEW_FRAGPROG;
}