On 17-02-06 10:00:16, Topi Pohjolainen Topi Pohjolainen wrote:
On Sun, Feb 05, 2017 at 10:48:11PM -0800, Ben Widawsky wrote:
On 17-01-25 20:53:44, Topi Pohjolainen Topi Pohjolainen wrote:
> On Mon, Jan 23, 2017 at 10:21:43PM -0800, Ben Widawsky wrote:
> > Make the code only disable CCS when it has to, unlike before where it
> > disabled CCS and enabled it when it could. This is much more inline with
> > how it should work in a few patches, where we have fewer restrictions as
> > to when we disable CCS.
> >
> > Signed-off-by: Ben Widawsky <b...@bwidawsk.net>
> > ---
> > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > index db1732159b..8a30d72d4c 100644
> > --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > @@ -329,7 +329,6 @@ intel_miptree_create_layout(struct brw_context *brw,
> > mt->logical_depth0 = depth0;
> > mt->aux_disable = (layout_flags & MIPTREE_LAYOUT_DISABLE_AUX) != 0 ?
> > INTEL_AUX_DISABLE_ALL : INTEL_AUX_DISABLE_NONE;
> > - mt->aux_disable |= INTEL_AUX_DISABLE_CCS;
> > mt->is_scanout = (layout_flags & MIPTREE_LAYOUT_FOR_SCANOUT) != 0;
> > exec_list_make_empty(&mt->hiz_map);
> > exec_list_make_empty(&mt->color_resolve_map);
> > @@ -522,6 +521,8 @@ intel_miptree_create_layout(struct brw_context *brw,
> > } else if (brw->gen >= 9 && num_samples > 1) {
> > layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
> > } else {
> > + mt->aux_disable |= INTEL_AUX_DISABLE_CCS;
> > +
> > const UNUSED bool is_lossless_compressed_aux =
> > brw->gen >= 9 && num_samples == 1 &&
> > mt->format == MESA_FORMAT_R_UINT32;
> > @@ -741,7 +742,6 @@ intel_miptree_create(struct brw_context *brw,
> > */
> > if (intel_tiling_supports_non_msrt_mcs(brw, mt->tiling) &&
> > intel_miptree_supports_non_msrt_fast_clear(brw, mt)) {
> > - mt->aux_disable &= ~INTEL_AUX_DISABLE_CCS;
> > assert(brw->gen < 8 || mt->halign == 16 || num_samples <= 1);
> >
> > /* On Gen9+ clients are not currently capable of consuming compressed
> > @@ -755,8 +755,11 @@ intel_miptree_create(struct brw_context *brw,
> > intel_miptree_supports_lossless_compressed(brw, mt);
> >
> > if (is_lossless_compressed) {
> > + mt->aux_disable &= ~INTEL_AUX_DISABLE_CCS;
>
> Leftover?
>
I don't think so. Can you explain?
This is trying to remove the INTEL_AUX_DISABLE_CCS which isn't set anymore
by default (just as you say in the commit message). In other words, if I'm
not missing something we shouldn't end up here anymore with the flag set?
Yeah. I tried this last night before responding here
(http://otc-mesa-ci.jf.intel.com/job/Leeroy/1060449/) however, I had a bug in my
assertion and so I thought that the flag was getting set somewhere. Anyway,
you're right. Fixed locally.
> > intel_miptree_alloc_non_msrt_mcs(brw, mt, is_lossless_compressed);
> > }
> > + } else {
> > + mt->aux_disable |= INTEL_AUX_DISABLE_CCS;
> > }
> >
> > return mt;
> > --
> > 2.11.0
> >
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev