History log of /external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8a472427559ea33186c71dfbab8254651fec3077 17-Jan-2012 Ian Romanick <ian.d.romanick@intel.com> intel: Set depth to 6 for cubemaps

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41216
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43212
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43250
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Jin Yang <jin.a.yang@intel.com>
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
87f12bb2d95236c7b025d1a8be56b5ab1683d702 22-Nov-2011 Eric Anholt <eric@anholt.net> i915: Fix build since hiz merge.

v2: Guard against rb->mt being NULL, since we may enter the draw
regions path before intel_prepare_render() has been called to set
them.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (v1)
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
d7cdbc3c5415d2dd5eee58834b13714a89eacf2b 24-Sep-2011 Kenneth Graunke <kenneth@whitecape.org> intel: Remove pointless boolean return value from *_miptree_layout.

i915_miptree_layout, i945_miptree_layout, and brw_miptree_layout always
just return GL_TRUE, so there's really no point to it. Change them to
void functions and remove the (dead) error checking code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
36a91e45f755af164232ef908419bc4cb64ba45b 26-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> intel: Silence several "warning: unused parameter"

The intel_context and tiling parameters were not used by any if the
i9[14]5_miptree_layout or the functions they call, and the tiling parameter was
not used by brw_miptree_layout. Remove the unnecessary parameters.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
f2fd0d63046c41559c5dfca9ebdc5d33c0ae4177 12-Jul-2011 Eric Anholt <eric@anholt.net> i915: Fix NPOT compressed textures on 915.

We were failing at rounding, misplacing the non-baselevels. Fixes:
3DFX_texture_compression_FXT1/fbo-generate-mipmaps
ARB_texture_compression/fbo-generate-mipmaps
EXT_texture_compression_s3tc/fbo-generate-mipmaps

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
5b3eb7538cd9ceb967b6e9e765896183e7c2c4d4 10-Jan-2011 Eric Anholt <eric@anholt.net> Revert "intel: Always allocate miptrees from level 0, not tObj->BaseLevel."

This reverts commit 7ce6517f3ac41bf770ab39aba4509d4f535ef663.
This reverts commit d60145d06d999c5c76000499e6fa9351e11d17fa.

I was wrong about which generations supported baselevel adjustment --
it's just gen4, nothing earlier. This meant that i915 would have
never used the mag filter when baselevel != 0. Not a severe bug, but
not an intentional regression. I think we can fix the performance
issue another way.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
d60145d06d999c5c76000499e6fa9351e11d17fa 06-Jan-2011 Eric Anholt <eric@anholt.net> i915: Fix build for previous commit.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
7d8f0fc28239c8023d2d44cbd4c979aa86c31873 29-Apr-2010 Eric Anholt <eric@anholt.net> i965: Fix cube map layouts on Ironlake.

We were doubling up the offsets for the mipmap levels for CPU access.
Instead of reimplementing i945_miptree_layout_2d with 6 cube images
separated by qpitch, share that function and provide the level offsets
later.

Fixes piglit cubemap and fbo-cubemap.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
2b6488326967c3e58737d90df8883a2c6c76a6c4 12-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915: Fix comments about cube layouts
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
362c1bf75eb74de5b4655c481b74f79718ed4a34 17-Mar-2010 Eric Anholt <eric@anholt.net> intel: Replace mt->pitch with mt->region->pitch.

The pitch is not really an inherent part of the miptree, since it's
not part of any of the layout calculations, and it's dictated by the
libdrm-allocated region pitch now.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
298be2b028263b2c343a707662c6fbfa18293cb2 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace the _mesa_*printf() wrappers with the plain libc versions
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
1ba96651e12b3c74fb9c8f5a61b183ef36a27b1e 03-Jun-2009 Eric Anholt <eric@anholt.net> intel: Add support for tiled textures.

This is about a 30% performance win in OA with high settings on my GM45,
and experiments with 915GM indicate that it'll be around a 20% win there.
Currently, 915-class hardware is seriously hurt by the fact that we use
fence regs to control the tiling even for 3D instructions that could live
without them, so we spend a bunch of time waiting on previous rendering in
order to pull fences off. Thus, the texture_tiling driconf option defaults
off there for now.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
b197a8ade3e1e6c67743111f12f27e0a4a985cd9 12-May-2009 Steinar H. Gunderson <sgunderson@bigfoot.com> i915: Fix 945 cube map layout for the small mipmaps along the bottom.

Bug #21691.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
5c5a46884899ea25cdf25545d6ab3d9a74eafa3a 15-May-2009 Eric Anholt <eric@anholt.net> i915: Only use the new 945 cube layout for compressed textures.

The docs actually explain this, but not in a terribly clear manner.
This nearly fixes the piglit cubemap testcase, except that something's
going wrong with the nearest filtering at 2x2 sizes in the testcase.
Looks good by visual inspection, though.

Bug #21692
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
ecadb51bbcb972a79f3ed79e65a7986b9396e757 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
b790b24ff9204eb6f305b14bd40bb903e65dd541 19-Mar-2008 Eric Anholt <eric@anholt.net> [i915] Bug #13634: Fix bugs in 945 cube mipmap layout.

The most egregious, and the one the bug report and failure in the cubemap
demo were about was introduced with intel_mipmap_pitch_align(), where a
"* 2" for the pitch calculation was lost. The base size < 32 case also
failed to align, which may have caused problems with render to texture.
Another bug would have broken 2x2/1x1 base mipmap levels by placing the
data where the hardware wouldn't look for it.

Other bugs remain with the layout of the small mipmap faces (hardware looks
for them in X,Y,Z,-X,-Y,-Z order along the bottom row, but we lay them out
X,-X,Y,-Y,Z,-Z).
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
c2814f2a3fbfa0e4ba6c45347fcadd3722b005ff 19-Mar-2008 Eric Anholt <eric@anholt.net> [i915] Add comments about how cube texture layout works.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
45adf29ed0bd47e21bed824ab9afcc7b9dcbb60d 19-Mar-2008 Eric Anholt <eric@anholt.net> [i915] Move miptree layout code into separate functions per target.

Also clean up some other miscellaneous formatting nits while I'm at it.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
363d8785192e299963df520d53c221f494c8026c 18-Mar-2008 Eric Anholt <eric@anholt.net> [945] Remove conditional in 945 3D mipmap layout checking for cube layout.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
a183efc132c8db1bb42525ac177ffff96f69a59b 18-Dec-2007 Keith Packard <keithp@keithp.com> [Intel] Centralize mipmap pitch computations.

mipmap pitches must account for the device alignment requirements, which
used to be fairly simple; just align to a 4-byte boundary. However, to allow
textures to be drawn to under TTM, they now need to be aligned to a 64-byte
boundary. Placing all of the alignment constraints in a single function
allows this new constraint to be applied uniformly.

There was some pitch constraining code in intel_miptree_create, but that was
modifying the pitch long after the miptree had been layed out, so it only
served to wreck the mipmap and cause rendering errors.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c
8cf9085bc7b96819d2bec1e749e15af58eefb2f3 24-Sep-2007 Eric Anholt <eric@anholt.net> Move i915tex driver into place as just i915.
/external/mesa3d/src/mesa/drivers/dri/i915/i915_tex_layout.c