Skip to content
Snippets Groups Projects
Commit 1288ac76 authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Marge Bot
Browse files

nv50: don't try to upload MSAA settings for BUFFER textures

We need the MSAA scaling parameters to properly fetch samples from MSAA
textures. These are stored in the miptree which wraps all regular
textures. However it does not wrap buffer textures, so make sure to skip
them rather than accessing out-of-bounds or unmapped memory.

Closes: #2727


Fixes: 3bd40073 ("nv50: add support for texelFetch'ing MS textures")
Signed-off-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Tested-by: Marge Bot <!4424>
Part-of: <!4424>
parent b38c32a5
No related branches found
No related tags found
No related merge requests found
......@@ -315,7 +315,7 @@ nv50_validate_tic(struct nv50_context *nv50, int s)
struct nv50_tic_entry *tic = nv50_tic_entry(nv50->textures[s][i]);
struct nv50_miptree *res;
if (!tic) {
if (!tic || tic->pipe.target == PIPE_BUFFER) {
PUSH_DATA (push, 0);
PUSH_DATA (push, 0);
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment