All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 36602] New: Hierarchical Z support for R600
Date: Tue, 26 Apr 2011 00:58:29 -0700 (PDT)	[thread overview]
Message-ID: <bug-36602-502@http.bugs.freedesktop.org/> (raw)

https://bugs.freedesktop.org/show_bug.cgi?id=36602

           Summary: Hierarchical Z support for R600
           Product: DRI
           Version: DRI CVS
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: DRM/Radeon
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: pelloux@gmail.com


Add Hierarchical Z (HiZ) support for r600g driver.

I'm attaching my work-in-progress patchs to this bug report to keep track of
comments.

This patch adds 3 new env vars :
- R600_EARLYZ : controls whether EarlyZ functionnality is used
(DB_SHADER_CONTROL register)
- R600_HIZ : HiZ enabled/disabled
- R600_HIZ_READ_HACK : this one is a quick hack for debugging HiZ data buffer.
If set, data will be read from HiZ bo instead of depth buffer bo when calling
glReadPixels( ... GL_DEPTH_COMPONENT ...)

General notes on HiZ on r600 :
(all testing done using : ATI Technologies Inc RV770 [Radeon HD 4850])

* HiZ buffer is made of DWORD entries. Each DWORD represents one tile (4x4 or
8x8 pixels depending DB_HTILE_SURFACE register fields)
* HiZ buffer does not need to be manually cleared by the driver
* DB_RENDER_CONTROL:RESUMMARIZE_ENABLE bit is not necessary to get it working -
but if enabled it slows things down
* application performance are roughly the same using R600_EARLYZ or R600_HIZ

Know problems :
* Hierarchical Stencil has not been tested
* HiZ buffer data layout is still unclear. As an example : using 640x640 window
and 8x8 tiles. HiZ buffer should contain (640/8)*(640/8) = 6400 entries. When
reading it back using the above hack, it contains 6400 entries but spread on
the 7680 first dwords of the buffer. Therefore HiZ bo if largely oversized for
now (ie = depth buffer size)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

             reply	other threads:[~2011-04-26  7:58 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26  7:58 bugzilla-daemon [this message]
2011-04-26  7:59 ` [Bug 36602] Hierarchical Z support for R600 bugzilla-daemon
2011-04-26  8:00 ` bugzilla-daemon
2011-04-26  8:01 ` bugzilla-daemon
2011-04-26 18:53 ` bugzilla-daemon
2011-05-03  9:36 ` bugzilla-daemon
2011-05-26 18:03 ` bugzilla-daemon
2011-06-01 13:01 ` bugzilla-daemon
2011-06-01 13:03 ` bugzilla-daemon
2011-07-19 19:36 ` bugzilla-daemon
2011-07-19 19:36 ` bugzilla-daemon
2011-07-19 19:42 ` bugzilla-daemon
2011-07-19 22:02 ` bugzilla-daemon
2011-08-03 15:38 ` bugzilla-daemon
2011-08-04 21:33 ` bugzilla-daemon
2011-08-04 21:47 ` bugzilla-daemon
2011-08-05 15:17 ` bugzilla-daemon
2011-08-05 15:30 ` bugzilla-daemon
2011-08-05 15:49 ` bugzilla-daemon
2011-08-05 15:50 ` bugzilla-daemon
2011-08-05 15:51 ` bugzilla-daemon
2011-08-05 19:24 ` bugzilla-daemon
2011-08-05 19:29 ` bugzilla-daemon
2011-08-05 19:33 ` bugzilla-daemon
2011-08-06 19:18 ` bugzilla-daemon
2011-08-06 19:18 ` bugzilla-daemon
2011-08-07 10:05 ` bugzilla-daemon
2011-08-07 18:18 ` bugzilla-daemon
2011-08-12 14:20 ` bugzilla-daemon
2011-08-13 10:57 ` bugzilla-daemon
2011-08-13 10:58 ` bugzilla-daemon
2011-08-13 14:50 ` bugzilla-daemon
2011-08-14  7:37 ` bugzilla-daemon
2011-08-20 21:57 ` bugzilla-daemon
2012-02-04 14:10 ` bugzilla-daemon
2012-02-09  0:27 ` bugzilla-daemon
2012-02-09  0:29 ` bugzilla-daemon
2012-02-09  0:46 ` bugzilla-daemon
2012-02-09  8:50 ` bugzilla-daemon
2012-02-09 16:57 ` bugzilla-daemon
2012-02-10  1:56 ` bugzilla-daemon
2012-06-03  6:45 ` bugzilla-daemon
2012-06-03 11:57 ` bugzilla-daemon
2012-06-03 15:09 ` bugzilla-daemon
2012-06-03 15:25 ` bugzilla-daemon
2012-06-05 18:44 ` bugzilla-daemon
2012-06-05 20:27 ` bugzilla-daemon
2012-06-06 22:24 ` bugzilla-daemon
2012-06-06 22:33 ` bugzilla-daemon
2012-06-07 11:19 ` bugzilla-daemon
2012-06-08 17:37 ` bugzilla-daemon
2012-06-14 21:58 ` bugzilla-daemon
2012-07-21  2:15 ` bugzilla-daemon
2012-09-06 17:24 ` bugzilla-daemon
2012-09-07 10:08 ` bugzilla-daemon
2013-06-08 15:34 ` bugzilla-daemon

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=bug-36602-502@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --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.