diff options
author | Chia-I Wu <[email protected]> | 2014-04-13 20:07:40 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-04-14 20:45:04 +0800 |
commit | e55e1610e5022811af28781fb8b556c6c1883942 (patch) | |
tree | 1e5848e4307bbe19d5b0d775529db71cdcc1909e /src/gallium/drivers/ilo/ilo_shader.c | |
parent | 6c6bd796adda4173ebaf494d6cd2a96d511f1ea3 (diff) |
ilo: use only defines from genhw headers
Stop including classic driver headers in genhw.h, with some formatting fixes.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index 6182aa571c9..b7e7a0a1439 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -309,8 +309,8 @@ ilo_shader_variant_init(struct ilo_shader_variant *variant, /* * When non-nearest filter and PIPE_TEX_WRAP_CLAMP wrap mode is used, - * the HW wrap mode is set to GEN6_TEXCOORDMODE_CLAMP_BORDER, and we need - * to manually saturate the texture coordinates. + * the HW wrap mode is set to GEN6_TEXCOORDMODE_CLAMP_BORDER, and we + * need to manually saturate the texture coordinates. */ if (sampler) { variant->saturate_tex_coords[0] |= sampler->saturate_s << i; @@ -991,8 +991,7 @@ ilo_shader_select_kernel_routing(struct ilo_shader_state *shader, src_slot + 1 < routing->source_len && src_semantics[src_slot + 1] == TGSI_SEMANTIC_BCOLOR && src_indices[src_slot + 1] == index) { - routing->swizzles[dst_slot] |= ATTRIBUTE_SWIZZLE_INPUTATTR_FACING << - ATTRIBUTE_SWIZZLE_SHIFT; + routing->swizzles[dst_slot] |= GEN7_SBE_ATTR_INPUTATTR_FACING; src_slot++; } |