Commit 17adcfc0 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

panfrost: Support (non-)seamless cube maps

Identify the seamless cubemap bit and passthrough the Gallium state
rather than setting unconditionally.
Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
parent 3e6c6bb0
......@@ -1234,8 +1234,9 @@ struct mali_sampler_descriptor {
enum mali_wrap_mode wrap_r : 4;
enum mali_alt_func compare_func : 3;
/* A single set bit of unknown, ha! */
unsigned unknown2 : 1;
/* No effect on 2D textures. For cubemaps, set for ES3 and clear for
* ES2, controlling seamless cubemapping */
unsigned seamless_cube_map : 1;
unsigned zero : 16;
......
......@@ -1873,7 +1873,7 @@ panfrost_create_sampler_state(
},
.min_lod = FIXED_16(cso->min_lod),
.max_lod = FIXED_16(cso->max_lod),
.unknown2 = 1,
.seamless_cube_map = cso->seamless_cube_map,
};
/* If necessary, we disable mipmapping in the sampler descriptor by
......
......@@ -1758,7 +1758,7 @@ pandecode_replay_vertex_tiler_postfix_pre(const struct mali_vertex_tiler_postfix
pandecode_prop("zero = 0x%X, 0x%X\n", s->zero, s->zero2);
}
pandecode_prop("unknown2 = %d", s->unknown2);
pandecode_prop("seamless_cube_map = %d", s->seamless_cube_map);
pandecode_prop("border_color = { %f, %f, %f, %f }",
s->border_color[0],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment