diff options
author | Chia-I Wu <[email protected]> | 2014-09-30 16:21:15 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-30 16:41:32 +0800 |
commit | 594e1a2f4b67ceb01d76980f54db40a4e7d56c40 (patch) | |
tree | 3d064bda1489aa231198c3d63afb1125c64d8cde | |
parent | 2d13b5ac81a8c2aa1f36be7e3350b12fbdbd65e8 (diff) |
ilo: fix format of edge flag pointer
The VE format of edge flag pointers was changed in
780ce576bb1781f027797039693b98253ee4813e.
Signed-off-by: Chia-I Wu <[email protected]>
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state_gen6.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state_gen6.c b/src/gallium/drivers/ilo/ilo_state_gen6.c index 2da2de25a88..0192c609672 100644 --- a/src/gallium/drivers/ilo/ilo_state_gen6.c +++ b/src/gallium/drivers/ilo/ilo_state_gen6.c @@ -354,12 +354,12 @@ ilo_gpe_set_ve_edgeflag(const struct ilo_dev_info *dev, cso->payload[0] |= GEN6_VE_STATE_DW0_EDGE_FLAG_ENABLE; /* - * Edge flags have format GEN6_FORMAT_R8_UINT when defined via + * Edge flags have format GEN6_FORMAT_R8_USCALED when defined via * glEdgeFlagPointer(), and format GEN6_FORMAT_R32_FLOAT when defined * via glEdgeFlag(), as can be seen in vbo_attrib_tmp.h. * * Since all the hardware cares about is whether the flags are zero or not, - * we can treat them as GEN6_FORMAT_R32_UINT in the latter case. + * we can treat them as the corresponding _UINT formats. */ format = GEN_EXTRACT(cso->payload[0], GEN6_VE_STATE_DW0_FORMAT); cso->payload[0] &= ~GEN6_VE_STATE_DW0_FORMAT__MASK; @@ -368,8 +368,10 @@ ilo_gpe_set_ve_edgeflag(const struct ilo_dev_info *dev, case GEN6_FORMAT_R32_FLOAT: format = GEN6_FORMAT_R32_UINT; break; + case GEN6_FORMAT_R8_USCALED: + format = GEN6_FORMAT_R8_UINT; + break; default: - assert(format == GEN6_FORMAT_R8_UINT); break; } |