From: "Marek Olšák" <maraeo@gmail.com>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH 1/2] radeon: simplify ZS buffer checking on r600
Date: Sun, 29 Jul 2012 16:02:01 +0200 [thread overview]
Message-ID: <1343570522-4080-1-git-send-email-maraeo@gmail.com> (raw)
Setting those flags has no effect anywhere else.
---
radeon/radeon_surface.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index c80f7f4..5800c33 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -385,14 +385,7 @@ static int r6_surface_init(struct radeon_surface_manager *surf_man,
/* tiling mode */
mode = (surf->flags >> RADEON_SURF_MODE_SHIFT) & RADEON_SURF_MODE_MASK;
- /* always enable z & stencil together */
- if (surf->flags & RADEON_SURF_ZBUFFER) {
- surf->flags |= RADEON_SURF_SBUFFER;
- }
- if (surf->flags & RADEON_SURF_SBUFFER) {
- surf->flags |= RADEON_SURF_ZBUFFER;
- }
- if (surf->flags & RADEON_SURF_ZBUFFER) {
+ if (surf->flags & (RADEON_SURF_ZBUFFER | RADEON_SURF_SBUFFER)) {
/* zbuffer only support 1D or 2D tiled surface */
switch (mode) {
case RADEON_SURF_MODE_1D:
--
1.7.9.5
next reply other threads:[~2012-07-29 14:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-29 14:02 Marek Olšák [this message]
2012-07-29 14:02 ` [PATCH 2/2] radeon: optimize allocation for depth w/o stencil and stencil w/o depth on EG Marek Olšák
2012-07-29 17:04 ` Marek Olšák
2012-07-30 14:56 ` Jerome Glisse
2012-07-30 15:17 ` Christian König
2012-07-30 15:22 ` Jerome Glisse
2012-07-30 15:37 ` Roland Scheidegger
2012-07-30 15:48 ` Marek Olšák
2012-07-30 16:03 ` Alex Deucher
2012-07-30 16:16 ` Alex Deucher
2012-07-30 16:52 ` Jerome Glisse
2012-07-30 17:03 ` Alex Deucher
2012-07-30 17:08 ` Jerome Glisse
2012-07-30 8:29 ` [PATCH 1/2] radeon: simplify ZS buffer checking on r600 Christian König
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=1343570522-4080-1-git-send-email-maraeo@gmail.com \
--to=maraeo@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.