From 1a69b50b3b441ce8f7a00af3a7f02c37df50f6c3 Mon Sep 17 00:00:00 2001 From: Stéphane Marchesin Date: Fri, 24 Jun 2011 16:18:58 -0700 Subject: i915g: Fix point sprites. --- src/gallium/drivers/i915/i915_state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/i915/i915_state.c') diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index 1b57c5776f2..2f1b0f9f093 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -466,6 +466,7 @@ i915_create_fs_state(struct pipe_context *pipe, if (!ifs) return NULL; + ifs->draw_data = draw_create_fragment_shader(i915->draw, templ); ifs->state.tokens = tgsi_dup_tokens(templ->tokens); tgsi_scan_shader(templ->tokens, &ifs->info); @@ -495,6 +496,8 @@ i915_bind_fs_state(struct pipe_context *pipe, void *shader) i915->fs = (struct i915_fragment_shader*) shader; + draw_bind_fragment_shader(i915->draw, (i915->fs ? i915->fs->draw_data : NULL)); + i915->dirty |= I915_NEW_FS; } -- cgit v1.2.3