[Mesa-dev] [PATCH v4 063/129] intel/blorp: Stop setting tex->texture/sampler

Jason Ekstrand jason at jlekstrand.net
Fri Jun 1 05:03:53 UTC 2018


nir_tex_instr_create uses rzalloc so it's already NULL
---
 src/intel/blorp/blorp_blit.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index c3a093c..b144bdd 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -178,8 +178,6 @@ blorp_create_nir_tex_instr(nir_builder *b, struct brw_blorp_blit_vars *v,
    tex->is_shadow = false;
 
    /* Blorp only has one texture and it's bound at unit 0 */
-   tex->texture = NULL;
-   tex->sampler = NULL;
    tex->texture_index = 0;
    tex->sampler_index = 0;
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list