From: Andy Furniss <andyqos@ukfsn.org>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/radeon/kms: r600 CS parser fixes
Date: Wed, 18 Aug 2010 12:39:20 +0100 [thread overview]
Message-ID: <4C6BC668.5030707@ukfsn.org> (raw)
In-Reply-To: <AANLkTikBNK_-Q54EPyeAnEowyJP0yqnArhKKEUGHEkze@mail.gmail.com>
Alex Deucher wrote:
> Does reverting this part of the patch fix it?
>
> @@ -1055,10 +1055,10 @@ static void r600_texture_size(unsigned nfaces,
> unsigned blevel, unsigned nlevels
> }
> *l0_size = ALIGN((w0 * bpe), pitch_align) * h0 * d0;
> *mipmap_size = offset;
> - if (!blevel)
> - *mipmap_size -= *l0_size;
> if (!nlevels)
> *mipmap_size = *l0_size;
> + if (!blevel)
> + *mipmap_size -= *l0_size;
> }
No, it does make the nunbers bigger, though -
radeon 0000:01:00.0: mipmap bo too small (512 512 4 0 0 1048576 ->
1048576 have 1409024)
Just as a double check this is my diff against current d-r-t for this test.
diff --git a/drivers/gpu/drm/radeon/r600_cs.c
b/drivers/gpu/drm/radeon/r600_cs.c
index d886494..f6580ca 100644
--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -1051,10 +1051,10 @@ static void r600_texture_size(unsigned nfaces,
unsigned blevel, unsigned nlevels
}
*l0_size = ALIGN((w0 * bpe), pitch_align) * h0 * d0;
*mipmap_size = offset;
- if (!nlevels)
- *mipmap_size = *l0_size;
if (!blevel)
*mipmap_size -= *l0_size;
+ if (!nlevels)
+ *mipmap_size = *l0_size;
}
/**
next prev parent reply other threads:[~2010-08-18 11:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 6:54 [PATCH] drm/radeon/kms: r600 CS parser fixes Alex Deucher
2010-08-10 15:14 ` Andy Furniss
2010-08-13 2:56 ` Jon Sturm
2010-08-13 10:38 ` Andy Furniss
2010-08-17 21:24 ` Alex Deucher
2010-08-18 11:39 ` Andy Furniss [this message]
2010-08-18 11:45 ` Andy Furniss
2010-08-18 14:07 ` Alex Deucher
2010-08-18 16:05 ` Andy Furniss
2010-09-08 22:37 ` Alex Deucher
2010-09-09 10:27 ` Andy Furniss
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=4C6BC668.5030707@ukfsn.org \
--to=andyqos@ukfsn.org \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.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