[Mesa-dev] [PATCH 1/2] i965: Fix mipmap offsets for HiZ and separate stencil buffers.

Roland Scheidegger sroland at vmware.com
Wed Apr 25 11:13:06 PDT 2012


Am 24.04.2012 21:23, schrieb Paul Berry:
> When rendering to a miplevel other than 0 within a color, depth,
> stencil, or HiZ buffer, we need to tell the GPU to render to an offset
> within the buffer, so that the data is written into the correct
> miplevel.  We do this using a coarse offset (in pages), and a fine
> adjustment (the so-called "tile_x" and "tile_y" values, which are
> measured in pixels).

Just wondering, can't you get the gpu to do these offset calculations
for you? After all dx10 allows you to have multiple mip levels bound as
a render target at once, where the actual mip level being rendered to is
determined by a system value (GL 3.3 (?) can do the same with the
gl_Layer output of geometry shader). How do you handle that if you have
to adjust the offset manually?

Roland


More information about the mesa-dev mailing list