mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
i965/wm: Don't sample lossless compressed as multisampled
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
683dda0083
commit
cda8c2a911
1 changed files with 5 additions and 1 deletions
|
|
@ -361,8 +361,12 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
|
|||
struct intel_texture_object *intel_tex =
|
||||
intel_texture_object((struct gl_texture_object *)t);
|
||||
|
||||
/* From gen9 onwards some single sampled buffers can also be
|
||||
* compressed. These don't need ld2dms sampling along with mcs fetch.
|
||||
*/
|
||||
if (brw->gen >= 7 &&
|
||||
intel_tex->mt->msaa_layout == INTEL_MSAA_LAYOUT_CMS) {
|
||||
intel_tex->mt->msaa_layout == INTEL_MSAA_LAYOUT_CMS &&
|
||||
intel_tex->mt->num_samples > 1) {
|
||||
key->compressed_multisample_layout_mask |= 1 << s;
|
||||
|
||||
if (intel_tex->mt->num_samples >= 16) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue