From 498052f711c96546453c32a1312002a5e4e7b2b2 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Thu, 21 Aug 2025 22:29:31 -0500 Subject: [PATCH] cube_ta_fullscreen_textured: explicit texture filter mode and shading --- cube_ta_fullscreen_textured.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cube_ta_fullscreen_textured.c b/cube_ta_fullscreen_textured.c index 5c03e84..78bfe27 100644 --- a/cube_ta_fullscreen_textured.c +++ b/cube_ta_fullscreen_textured.c @@ -185,6 +185,8 @@ typedef struct isp_tsp_parameter__polygon { #define TSP_INSTRUCTION_WORD__SRC_ALPHA_INSTR__ONE (1 << 29) #define TSP_INSTRUCTION_WORD__DST_ALPHA_INSTR__ZERO (0 << 26) #define TSP_INSTRUCTION_WORD__FOG_CONTROL__NO_FOG (0b10 << 22) +#define TSP_INSTRUCTION_WORD__FILTER_MODE__POINT_SAMPLED (0b00 << 13) +#define TSP_INSTRUCTION_WORD__TEXTURE_SHADING_INSTRUCTION__DECAL (0 << 6) #define TSP_INSTRUCTION_WORD__TEXTURE_U_SIZE__256 (5 << 3) #define TSP_INSTRUCTION_WORD__TEXTURE_V_SIZE__256 (5 << 0) @@ -451,6 +453,8 @@ static inline uint32_t transfer_ta_global_polygon(uint32_t store_queue_ix, uint3 polygon->tsp_instruction_word = TSP_INSTRUCTION_WORD__SRC_ALPHA_INSTR__ONE | TSP_INSTRUCTION_WORD__DST_ALPHA_INSTR__ZERO | TSP_INSTRUCTION_WORD__FOG_CONTROL__NO_FOG + | TSP_INSTRUCTION_WORD__FILTER_MODE__POINT_SAMPLED + | TSP_INSTRUCTION_WORD__TEXTURE_SHADING_INSTRUCTION__DECAL | TSP_INSTRUCTION_WORD__TEXTURE_U_SIZE__256 | TSP_INSTRUCTION_WORD__TEXTURE_V_SIZE__256;