Module: Mesa
Branch: master
Commit: 475d7ecce2f1e78b373628a886e5adfa1805c244
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=475d7ecce2f1e78b373628a886e5adfa1805c244

Author: Chia-I Wu <[email protected]>
Date:   Thu Aug 22 14:55:13 2013 +0800

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 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.h 
b/src/gallium/drivers/ilo/ilo_gpe_gen6.h
index a3dea39..f9bffa9 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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to