From 475d7ecce2f1e78b373628a886e5adfa1805c244 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 22 Aug 2013 14:55:13 +0800 Subject: [PATCH] ilo: add GEN check to 3DSTATE_CLIP Assert that gen6_emit_3DSTATE_CLIP is for GEN 6 and 7. --- src/gallium/drivers/ilo/ilo_gpe_gen6.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2