summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_shader.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-29 15:06:48 +0800
committerChia-I Wu <[email protected]>2013-06-07 11:13:15 +0800
commit94212915ee8f7bf98c8adfe248a05a382d00c191 (patch)
tree0a446299c9c70f183018996cc6b0ce836515f9f6 /src/gallium/drivers/ilo/ilo_shader.c
parent29b938d9f43a4bc355ee05cad2c9796ea7ee93dd (diff)
ilo: switch to ilo states for CC stage
Define and use struct ilo_dsa_state; struct ilo_blend_state; struct ilo_fb_state; in ilo_context.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_shader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c
index 78366ba9c82..86268b1a9f0 100644
--- a/src/gallium/drivers/ilo/ilo_shader.c
+++ b/src/gallium/drivers/ilo/ilo_shader.c
@@ -64,8 +64,8 @@ ilo_shader_variant_init(struct ilo_shader_variant *variant,
variant->u.fs.flatshade =
(info->has_color_interp && ilo->rasterizer->state.flatshade);
variant->u.fs.fb_height = (info->has_pos) ?
- ilo->framebuffer.height : 1;
- variant->u.fs.num_cbufs = ilo->framebuffer.nr_cbufs;
+ ilo->fb.state.height : 1;
+ variant->u.fs.num_cbufs = ilo->fb.state.nr_cbufs;
break;
default:
assert(!"unknown shader type");
@@ -137,7 +137,7 @@ ilo_shader_variant_guess(struct ilo_shader_variant *variant,
case PIPE_SHADER_FRAGMENT:
variant->u.fs.flatshade = false;
variant->u.fs.fb_height = (info->has_pos) ?
- ilo->framebuffer.height : 1;
+ ilo->fb.state.height : 1;
variant->u.fs.num_cbufs = 1;
break;
default: