From: Chia-I Wu Date: Thu, 22 Aug 2013 06:55:13 +0000 (+0800) Subject: ilo: add GEN check to 3DSTATE_CLIP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=475d7ecce2f1e78b373628a886e5adfa1805c244;p=mesa.git ilo: add GEN check to 3DSTATE_CLIP Assert that gen6_emit_3DSTATE_CLIP is for GEN 6 and 7. --- diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.h b/src/gallium/drivers/ilo/ilo_gpe_gen6.h index a3dea39349c..f9bffa9d4d2 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen6.h +++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.h @@ -1146,6 +1146,8 @@ gen6_emit_3DSTATE_CLIP(const struct ilo_dev_info *dev, const uint8_t cmd_len = 4; uint32_t dw1, dw2, dw3; + ILO_GPE_VALID_GEN(dev, 6, 7); + if (rasterizer) { int interps;