Created
November 16, 2021 18:24
-
-
Save anarsoul/534772dbc0e124808face1c3573912f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gallium/drivers/lima/lima_job.c b/src/gallium/drivers/lima/lima_job.c | |
index ef8a6444cb9..c97604dc841 100644 | |
--- a/src/gallium/drivers/lima/lima_job.c | |
+++ b/src/gallium/drivers/lima/lima_job.c | |
@@ -361,11 +361,11 @@ lima_pack_reload_plbu_cmd(struct lima_job *job, struct pipe_surface *psurf) | |
struct lima_render_state reload_render_state = { | |
.alpha_blend = 0xf03b1ad2, | |
- .depth_test = 0x0000000e, | |
+ .depth_test = 0x0000000e | (4 << 6), | |
.depth_range = 0xffff0000, | |
.stencil_front = 0x00000007, | |
.stencil_back = 0x00000007, | |
- .multi_sample = 0x0000f007, | |
+ .multi_sample = 0x4444f007, | |
.shader_address = reload_shader_va | reload_shader_first_instr_size, | |
.varying_types = 0x00000001, | |
.textures_address = va + lima_reload_tex_array_offset, | |
diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c | |
index baa1d6be472..8b045a01d90 100644 | |
--- a/src/gallium/drivers/lima/lima_screen.c | |
+++ b/src/gallium/drivers/lima/lima_screen.c | |
@@ -702,11 +702,11 @@ lima_screen_create(int fd, struct renderonly *ro) | |
pp_clear_program, sizeof(pp_clear_program)); | |
/* copy texture to framebuffer, used to reload gpu tile buffer | |
- * load.v $1 0.xy, texld_2d 0, mov.v0 $0 ^tex_sampler, sync, stop | |
+ * load.v $1 0.xy, texld_2d 0, mov.v0 $4 ^tex_sampler, sync, stop | |
*/ | |
static const uint32_t pp_reload_program[] = { | |
0x000005e6, 0xf1003c20, 0x00000000, 0x39001000, | |
- 0x00000e4e, 0x000007cf, 0x00000000, 0x00000000, | |
+ 0x40000e4e, 0x000007cf, 0x00000000, 0x00000000, | |
}; | |
memcpy(lima_bo_map(screen->pp_buffer) + pp_reload_program_offset, | |
pp_reload_program, sizeof(pp_reload_program)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment