History log of /external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8b731b8b0364a19917a62d69ebd106423555ec27 18-Oct-2016 Brian Paul <brianp@vmware.com> svga: minor code improvements in svga_validate_pipe_sampler_view()

Use the 'texture' local var in more places.
Rename 'pFormat' to 'viewFormat'.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
f5602c27ec681f1f66cdb8d79378991b79ce45e7 29-Aug-2016 Brian Paul <brianp@vmware.com> svga: s/unsigned/enum pipe_shader_type/

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
ff500ed5a1287eadc06fc19661f0aad8767b664d 26-Aug-2016 Brian Paul <brianp@vmware.com> svga: add new svga_check_sampler_framebuffer_resource_collision()

Reviewed-by: Neha Bhende <bhenden@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
2781d603753148771c1a706150b7a9a54592befe 18-Aug-2016 Charmaine Lee <charmainel@vmware.com> svga: avoid emitting redundant SetShaderResource command

Tested with Lightsmark2008, Heaven, MTT piglit, glretrace, viewperf, conform.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
3f51a3f6ac2aad0400e25ef6f772ff9c4b240d5f 16-Aug-2016 Charmaine Lee <charmainel@vmware.com> svga: avoid emitting redundant DXSetSamplers command

This patch avoid emitting redundant DXSetSamplers command.

Tested with Lightsmark2008, Heaven, MTT piglit, glretrace, viewperf.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
7cd256ce7e4bad680bb77d033cf5dd662abab2dd 12-Aug-2016 Marek Olšák <marek.olsak@amd.com> gallium: change pipe_sampler_view::first_element/last_element -> offset/size

This is required by OpenGL. Our hardware supports this.

Example: Bind RGBA32F with offset = 4 bytes.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97305

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
68388043f3280bbac9383721e37f8ca7685b7f01 27-Jun-2016 Brian Paul <brianp@vmware.com> svga: adjust sampler view format for RGBX

We previously handled the case of a RGBX sampler view of a RGBA surface.
Add the reverse case too. For GL_ARB_copy_image.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
e0184b3995fa308c125ae8e090d2bbdffd495b5f 25-Apr-2016 Brian Paul <brianp@vmware.com> svga: s/Elements/ARRAY_SIZE/

Standardize on the later macro rather than a mix of both.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
f1410c5b910911e690290e8a95aeb9f95e7cc470 02-Mar-2016 Sinclair Yeh <syeh@vmware.com> svga: Force an RGBA view creation for an RGBA resource

glXCreatePixmap() may specify a GLX_TEXTURE_FORMAT_RGB_EXT format
for an RGBA resource, causing us to create an RGBX view for an
RGBA resource, a combination vgpu10 does not support.

When this is detected, change the request to create an RGBA view
instead.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
6303231a1ddf646b05c43c6bbc7fa71314ebb3fc 22-Dec-2015 Charmaine Lee <charmainel@vmware.com> svga: add DXGenMips command support

For those formats that support hw mipmap generation, use the
DXGenMips command. Otherwise fallback to the mipmap generation utility.

Tested with piglit, OpenGL apps (Heaven, Turbine, Cinebench)

v2: make sure the texture surface was created with the render target bind flag
set relocation flag to SVGA_RELOC_WRITE for the texture surface

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
27d5be0b8fafecefc4f0378ca940cea8c0415715 10-Dec-2015 Brian Paul <brianp@vmware.com> svga: avoid emitting redundant SetSamplers() commands

This greatly reduces the number of SetSamplers() commands for some
applications.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
1a90e3e1e3ee70504f2ce57462fb592b448269be 16-Nov-2015 Brian Paul <brianp@vmware.com> svga: add/use new svga_sampler_format() function

This is important for the case of sampling from a depth texture. In
that case, we need to sample the texture as if it were a single-channel
color texture. For other/color formats, we can use the format as-is.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
b2fd41ce465e16a178d51000b843b5228640b670 14-Aug-2015 Charmaine Lee <charmainel@vmware.com> svga: fix backed surface view regression

Commit b9ba8492 removes an unneeded pipe_surface_release() from
st_render_texture() and exposes a bug in the backed surface view
creation. Currently a backed surface view for a conflicted surface view
is created at framebuffer emit time. But if shader sampler views are changed
but framebuffer surface views remain unchanged, emit_framebuffer() will not
be called and conflicted surface views will not be detected.

To fix this, also check for conflicted surface views when setting sampler
views. If there is any conflicted surface views, enable the
framebuffer dirty bit so that the framebuffer emit code has a chance to
create a backed surface view for the conflicted surface view.

Fix cinebench-r11-test regression.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
e054251ed11e25a080f64b92db9334c9b07c8c76 13-Aug-2015 Brian Paul <brianp@vmware.com> svga: update driver for version 10 GPU interface

This is a squash commit of roughly two years of development work.
Authors include:
Brian Paul
Charmaine Lee
Thomas Hellstrom
Jakob Bornecrantz
Sinclair Yeh
Mingcheng Chen
Kai Ninomiya
MengLin Wu

The driver supports OpenGL 3.3.

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c
26d8bae88908b490a37b6ba39b88f44945bb5613 07-Aug-2015 Brian Paul <brianp@vmware.com> svga: add new svga_state_sampler.c file

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_state_sampler.c