drm/radeon/kms/r100: fix bug in CS parser
Subsystems (2)
PATCH 1/1 drm/radeon/kms/r100: fix bug in CS parser
Quoted 1 line
From
1d48b39f50e1ebe2fa414290ed322a31be3fbb48Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 18 Jan 2010 20:20:07 -0500
Subject: [PATCH] drm/radeon/kms/r100: fix bug in CS parser
The first dword of PACKET3_3D_DRAW_IMMD maps toSE_VTX_FMT so the vertex size is part of the draw
packet.
This patch fixes a possible case where you have a command buffer that does not contain SE_VTX_FMT register write, but does contain PACKET3_3D_DRAW_IMMD.
--- drivers/gpu/drm/radeon/r100.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/r100.c +1 -0
@@ -1504,6 +1504,7 @@ static int r100_packet3_check(struct radeon_cs_parser *p,DRM_ERROR ("PRIM_WALK must be 3 for IMMD draw\n" );return -EINVAL ; } + track->vtx_size =r100_get_vtx_size (radeon_get_ib_value (p, idx +0 )); track->vap_vf_cntl =radeon_get_ib_value (p, idx +1 ); track->immd_dwords = pkt->count -1 ; r =r100_cs_track_check (p->rdev, track);
Signature · 1 line
1.5.6.3
From 1d48b39f50e1ebe2fa414290ed322a31be3fbb48 Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 18 Jan 2010 20:20:07 -0500
Subject: [PATCH] drm/radeon/kms/r100: fix bug in CS parser
The first dword of PACKET3_3D_DRAW_IMMD maps toSE_VTX_FMT so the vertex size is part of the draw
packet.
This patch fixes a possible case where you have a command buffer that does not contain SE_VTX_FMT register write, but does contain PACKET3_3D_DRAW_IMMD.
--- drivers/gpu/drm/radeon/r100.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/r100.c +1 -0
@@ -1504,6 +1504,7 @@ static int r100_packet3_check(struct radeon_cs_parser *p,DRM_ERROR ("PRIM_WALK must be 3 for IMMD draw\n" );return -EINVAL ; } + track->vtx_size =r100_get_vtx_size (radeon_get_ib_value (p, idx +0 )); track->vap_vf_cntl =radeon_get_ib_value (p, idx +1 ); track->immd_dwords = pkt->count -1 ; r =r100_cs_track_check (p->rdev, track);
Signature · 1 line
1.5.6.3
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel