i965: Remove MIPLAYOUT_BELOW from Gen4-6 constant buffer surface state.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 14 Sep 2013 03:01:08 +0000 (20:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Sep 2013 20:17:07 +0000 (13:17 -0700)
Specifying a miptree layout makes no sense for constant buffers.

This has no functional change since BRW_SURFACE_MIPMAPLAYOUT_BELOW is
just a #define for 0.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 25db2e0c25b433bd84780c2b53ef987e4fc865d2..8d87786f0fac968caa4cac5a2da5ebe3a1ac9b79 100644 (file)
@@ -318,7 +318,6 @@ brw_create_constant_surface(struct brw_context *brw,
                          6 * 4, 32, out_offset);
 
    surf[0] = (BRW_SURFACE_BUFFER << BRW_SURFACE_TYPE_SHIFT |
-             BRW_SURFACE_MIPMAPLAYOUT_BELOW << BRW_SURFACE_MIPLAYOUT_SHIFT |
              BRW_SURFACEFORMAT_R32G32B32A32_FLOAT << BRW_SURFACE_FORMAT_SHIFT);
 
    if (brw->gen >= 6)