diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-02-12 14:12:24 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-02-12 14:12:24 +0000 |
commit | 45a275ee29095b69c620ece868411885f4574be9 (patch) | |
tree | 71d2259d40e5088d7e38d27440a29e7cf0ce6ccb | |
parent | 37dbf157f354234d04cd4f0c5d069ff0d535e862 (diff) |
drm/i915: Use correct linear mode for mask.
-rw-r--r-- | src/drm/cairo-drm-i915-shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drm/cairo-drm-i915-shader.c b/src/drm/cairo-drm-i915-shader.c index ab61947a..6f378043 100644 --- a/src/drm/cairo-drm-i915-shader.c +++ b/src/drm/cairo-drm-i915-shader.c @@ -707,7 +707,7 @@ i915_set_shader_program (i915_device_t *device, break; case FS_LINEAR: - i915_shader_linear_color (device, shader->source.base.mode, + i915_shader_linear_color (device, shader->mask.base.mode, FS_T0 + texture_offset, /* input */ FS_C0 + constant_offset, FS_C0 + constant_offset + 1, /* colour ramp */ @@ -722,7 +722,7 @@ i915_set_shader_program (i915_device_t *device, break; case FS_RADIAL: - i915_shader_radial_coord (device, shader->source.base.mode, + i915_shader_radial_coord (device, shader->mask.base.mode, FS_T0 + texture_offset, /* input */ FS_C0 + constant_offset, FS_C0 + constant_offset + 1, /* gradient constants */ |