mesa/src
Yuanhan Liu f939776cb2 i965: fix wrong cube/3D texture layout
Fix wrong cube/3D texture layout for the tailing levels whose width or
height is smaller than the align unit.

From 965 B-spec http://intellinuxgraphics.org/VOL_1_graphics_core.pdf at
page 135:
   All of the LOD=0 q-planes are stacked vertically, then below that,
   the LOD=1 qplanes are stacked two-wide, then the LOD=2 qplanes are
   stacked four-wide below that, and so on.

Thus we should always inrease pack_x_nr, which results to the pitch of LODn
may greater than the pitch of LOD0. So we should refactor mt->total_width
when needed.

This would fix the following webgl test case on all gen4 platforms:
  conformance/textures/texture-size-cube-maps.html

NOTE: This is a candidate for stable release branches.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2012-05-09 15:13:56 +08:00
..
egl egl_dri2: Fix out of tree builds with the wayland backend enabled 2012-05-03 11:45:59 -04:00
gallium radeon/llvm: Remove AMDILUtilityFunctions.cpp 2012-05-08 15:47:46 -04:00
gbm gbm: Add gbm_bo_write entry point 2012-05-03 10:57:32 -04:00
getopt
glsl glsl: Change built-in constant expression evaluation to run the IR. 2012-05-08 12:55:52 -07:00
glu scons: Add Haiku build support 2012-01-17 20:01:14 +00:00
glx darwin: Use ASL for logging 2012-05-03 10:58:34 -07:00
gtest gtest: Don't actually install a library. 2012-04-16 11:25:39 -07:00
mapi glapi: Correct size of allocated _glapi_table struct 2012-04-22 20:39:32 -07:00
mesa i965: fix wrong cube/3D texture layout 2012-05-09 15:13:56 +08:00
Makefile
SConscript scons: Do not build EGL on Solaris. 2012-05-03 22:58:35 -07:00