diff mbox

intel: Fix decode of Gen7 3DSTATE_VERTEX_BUFFERS

Message ID 1416485171-30702-1-git-send-email-chrisf@ijw.co.nz (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Forbes Nov. 20, 2014, 12:06 p.m. UTC
Buffer index / access mode bits are the same as on Gen6.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
---
 intel/intel_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index 7d5cbe5..adda29a 100644
--- a/intel/intel_decode.c
+++ b/intel/intel_decode.c
@@ -3383,7 +3383,7 @@  decode_3d_965(struct drm_intel_decode *ctx)
 
 		for (i = 1; i < len;) {
 			int idx, access;
-			if (IS_GEN6(devid)) {
+			if (IS_GEN6(devid) || IS_GEN7(devid)) {
 				idx = 26;
 				access = 20;
 			} else {