diff options
author | Stéphane Marchesin <[email protected]> | 2011-06-24 16:18:58 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-06-24 16:30:19 -0700 |
commit | 1a69b50b3b441ce8f7a00af3a7f02c37df50f6c3 (patch) | |
tree | 95c1b1291ab9f34ff58f4a37dc65774b2455b9dc /src/gallium/drivers/i915/i915_state.c | |
parent | 6b28b44d458177209705637f759d03a27fa100f1 (diff) |
i915g: Fix point sprites.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |