mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
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>
This commit is contained in:
parent
5743fd9571
commit
9002bcdb35
1 changed files with 10 additions and 10 deletions
|
|
@ -1541,7 +1541,7 @@ intel_miptree_alloc_non_msrt_mcs(struct brw_context *brw,
|
||||||
if (brw->gen >= 8) {
|
if (brw->gen >= 8) {
|
||||||
layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
|
layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
|
||||||
}
|
}
|
||||||
mt->mcs_mt = intel_miptree_create(brw,
|
mt->mcs_mt = miptree_create(brw,
|
||||||
mt->target,
|
mt->target,
|
||||||
format,
|
format,
|
||||||
mt->first_level,
|
mt->first_level,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue