From: Andrew Morton <akpm@osdl.org>
To: Dave Airlie <airlied@linux.ie>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [FOR 2.6.18 FIX][PATCH] drm: radeon flush TCL VAP for vertex program enable/disable
Date: Wed, 30 Aug 2006 15:41:52 -0700 [thread overview]
Message-ID: <20060830154152.9ac71753.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0608302314360.21600@skynet.skynet.ie>
On Wed, 30 Aug 2006 23:17:55 +0100 (IST)
Dave Airlie <airlied@linux.ie> wrote:
>
> Can we get this into 2.6.18? it fixes a lockup condition in r200 vertex
> programs.
>
> From: Roland Scheidegger <rscheidegger_lists@hispeed.ch>
>
> The radeon requires a VAP state flush when enabling/disabling
> vertex programs on the r200 cards.
>
> Signed-off-by: Dave Airlie <airlied@linux.ie>
> ---
> drivers/char/drm/radeon_state.c | 9 ++++++++-
> 1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/char/drm/radeon_state.c b/drivers/char/drm/radeon_state.c
> index 5bb2234..5a08a23 100644
> --- a/drivers/char/drm/radeon_state.c
> +++ b/drivers/char/drm/radeon_state.c
> @@ -175,6 +175,14 @@ static __inline__ int radeon_check_and_f
> }
> break;
>
> + case R200_EMIT_VAP_CTL:{
> + RING_LOCALS;
> + BEGIN_RING(2);
> + OUT_RING_REG(RADEON_SE_TCL_STATE_FLUSH, 0);
> + ADVANCE_RING();
> + }
> + break;
> +
> case RADEON_EMIT_RB3D_COLORPITCH:
> case RADEON_EMIT_RE_LINE_PATTERN:
> case RADEON_EMIT_SE_LINE_WIDTH:
> @@ -202,7 +210,6 @@ static __inline__ int radeon_check_and_f
> case R200_EMIT_TCL_LIGHT_MODEL_CTL_0:
> case R200_EMIT_TFACTOR_0:
> case R200_EMIT_VTX_FMT_0:
> - case R200_EMIT_VAP_CTL:
> case R200_EMIT_MATRIX_SELECT_0:
> case R200_EMIT_TEX_PROC_CTL_2:
> case R200_EMIT_TCL_UCP_VERT_BLEND_CTL:
That's a somewhat weird-looking patch. It adds code which is quite
dissimilar from all the other cases in that switch statement.
Are you sure??
next prev parent reply other threads:[~2006-08-30 22:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 22:17 Dave Airlie
2006-08-30 22:41 ` Andrew Morton [this message]
2006-08-30 22:50 ` Dave Airlie
2006-08-30 22:53 ` Linus Torvalds
2006-08-30 23:03 ` Dave Airlie
2006-08-31 6:27 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060830154152.9ac71753.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=airlied@linux.ie \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®