summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-06gk110: add in forgotten code for gk110 isaIlia Mirkin1-0/+13
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Cc: "10.2" <mesa-stable@lists.freedesktop.org> Conflicts: src/gallium/drivers/nouveau/nvc0/nvc0_surface.c (cherry picked from commit b9ec766bd02d55c20ff7ce5b95207ea7f6ed1de5)
2014-05-23nv50,nvc0: fix 3d blits with mipmap levelsIlia Mirkin1-5/+9
Make sure to normalize the z coordinates as well as the x/y ones when there are mipmaps present. Fixes 3d mipmap generation, which now uses the blit path. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> (cherry picked from commit 28360fcad75a6917db6af42fb17b81572850ec0d)
2014-05-13nv50,nvc0: leave queries on during blit, turn them on for 2d engineIlia Mirkin1-2/+9
Fixes the new logic of the conditional rendering piglit test. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Cc: "10.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 4467c0c9fbf2c13b6c73a002e8247448ee12d4c4)
2014-04-26nvc0: add support for PIPE_CAP_SAMPLE_SHADINGIlia Mirkin1-1/+10
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-04-19nvc0: change logic for centering of eng2d blit when downsamplingIlia Mirkin1-2/+2
We want to center the sample. The old code may have been correct given the limited values of ms_x/y, but the new logic should be more intuitive. Note that ms_x can only be 1/2 and ms_y can only be 0/1. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-03-09Revert nvc0 part of "nv50: adjust blit_3d handling of ms output textures"Ilia Mirkin1-8/+4
The nvc0 bits don't appear to work, and I thought I had removed them from the commit. Oops. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
2014-03-09nv50: adjust blit_3d handling of ms output texturesIlia Mirkin1-4/+8
This fixes some unwanted scaling when the output is multisampled. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at> Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
2014-01-27nvc0: don't forget to also clear additional layersIlia Mirkin1-5/+27
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-01-27nv50, nvc0: only clear out the buffers that we were asked to clearIlia Mirkin1-7/+12
Fixes fbo-drawbuffers-none glClearBuffer piglit test. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2013-09-20gallium: add flush_resource context functionMarek Olšák1-0/+7
r600g needs explicit flushing before DRI2 buffers are presented on the screen. v2: add (stub) implementations for all drivers, fix frontbuffer flushing v3: fix galahad Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2013-09-11Move nv30, nv50 and nvc0 to nouveau.Johannes Obermayr1-0/+1265
It is planned to ship openSUSE 13.1 with -shared libs. nouveau.la, nv30.la, nv50.la and nvc0.la are currently LIBADDs in all nouveau related targets. This change makes it possible to easily build one shared libnouveau.so which is then LIBADDed. Also dlopen will be faster for one library instead of three and build time on -jX will be reduced. Whitespace fixes were requested by 'git am'. Signed-off-by: Johannes Obermayr <johannesobermayr@gmx.de> Acked-by: Christoph Bumiller <christoph.bumiller@speed.at> Acked-by: Ian Romanick <ian.d.romanick@intel.com>