From 45a275ee29095b69c620ece868411885f4574be9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 12 Feb 2010 14:12:24 +0000 Subject: drm/i915: Use correct linear mode for mask. --- src/drm/cairo-drm-i915-shader.c | 4 ++-- 1 file 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 */ -- cgit v1.2.3