i965: Don't try to create aux buffer for non-msrt aux-buffer
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 7 Dec 2015 09:56:05 +0000 (11:56 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Sat, 13 Feb 2016 07:28:41 +0000 (09:28 +0200)
commit9002bcdb355cca324d58d59893211ba3fe2efc8b
treede34bc3bdd7a5b2be7363b6ff79838a8d5e9eaaf
parent5743fd957145040a4734b5542ee5187cfad4cf1d
i965: Don't try to create aux buffer for non-msrt aux-buffer

In addition to simply calling miptree_create() the higher level
call intel_miptree_create() also considers if the buffer should
be associated with an auxiliary buffer based on the given format.

Here we are allocating an auxiliary buffer which in turn has such
format that would mislead intel_miptree_create_layout() later on
to try to associate the auxiliary buffer with an auxiliary buffer.
To prevent this the actual buffer creation logic was split out
into its own function. Lets invoke that instead.

v2 (Ben): Do not signal msaa layout with explicit argument but
          using layout_flags instead.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c