[Mesa-dev] [PATCH 1/2] i965/skl: Upload qpitch in pixels for 1D textures
neil at linux.intel.com
Wed Feb 18 11:13:54 PST 2015
Ben Widawsky <ben at bwidawsk.net> writes:
> I promise to look at this again in more detail tomorrow when I am more
> awake, but meanwhile, I'd be very much in favor of just setting
> mt->qpith for all miptree layout types.
I'm not sure what you mean. Do you mean that we should just always set
mt->qpitch to the actual value that we're going to upload? Yes, that
seems like a good idea. I was originally worried about that because I
had thought that other bits of code were looking at the qpitch to work
out some offsets but that is not the case.
The qpitch seems to also be broken for 3D textures and compressed
textures so I think it might be a good idea to squash this patch into a
general patch which fixes everything. I made a start on that as part of
fixing the copyteximage test for 3D textures here:
I don't want to post the patch to the mailing list yet because it
doesn't fix the test for the GL_RGBA32 format with 3D textures and I'd
like to work out why first.
More information about the mesa-dev