summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drm/cairo-drm-i915-shader.c4
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 */