mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
svga: update SVGA_NEW_ flags for updating sampler state
The SVGA_NEW_FS flag is needed since we now examine the fragment shader's fs_shadow_compare_units flags. The SVGA_NEW_TEXTURE_FLAGS flag is not needed since it's only for pre-VGPU10. No piglit changes. This doesn't fix any known issues but it could pop up somewhere. Suggested by Charmaine. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
f50924cb5b
commit
23f37e98a1
1 changed files with 4 additions and 3 deletions
|
|
@ -393,6 +393,7 @@ update_samplers(struct svga_context *svga, unsigned dirty )
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
bool fs_shadow = false;
|
bool fs_shadow = false;
|
||||||
|
|
||||||
|
/* _NEW_FS */
|
||||||
if (shader == PIPE_SHADER_FRAGMENT) {
|
if (shader == PIPE_SHADER_FRAGMENT) {
|
||||||
struct svga_shader_variant *fs = svga->state.hw_draw.fs;
|
struct svga_shader_variant *fs = svga->state.hw_draw.fs;
|
||||||
/* If the fragment shader is doing the shadow comparison
|
/* If the fragment shader is doing the shadow comparison
|
||||||
|
|
@ -469,8 +470,8 @@ update_samplers(struct svga_context *svga, unsigned dirty )
|
||||||
|
|
||||||
struct svga_tracked_state svga_hw_sampler = {
|
struct svga_tracked_state svga_hw_sampler = {
|
||||||
"texture sampler emit",
|
"texture sampler emit",
|
||||||
(SVGA_NEW_SAMPLER |
|
(SVGA_NEW_FS |
|
||||||
SVGA_NEW_STIPPLE |
|
SVGA_NEW_SAMPLER |
|
||||||
SVGA_NEW_TEXTURE_FLAGS),
|
SVGA_NEW_STIPPLE),
|
||||||
update_samplers
|
update_samplers
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue