summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_context.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-06-27 16:59:59 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:07 -0800
commitc0e80a8d0a782ce345fcd27f0c0333345eeb073f (patch)
treee6da9acd4c1df32c2928b688bcdcf7ead0ba8119 /src/gallium/drivers/iris/iris_context.h
parentd358a4a04007bca8cedbb213800f4e398f8a34f7 (diff)
iris: null surface for unbound textures
avoids crashes...may not be really right
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r--src/gallium/drivers/iris/iris_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h
index b5489c7e46e..5e6b9e02280 100644
--- a/src/gallium/drivers/iris/iris_context.h
+++ b/src/gallium/drivers/iris/iris_context.h
@@ -269,6 +269,9 @@ struct iris_context {
unsigned num_samplers[MESA_SHADER_STAGES];
unsigned num_textures[MESA_SHADER_STAGES];
+ struct pipe_resource *unbound_tex_surface_state_resource;
+ unsigned unbound_tex_surface_state_offset;
+
struct u_upload_mgr *surface_uploader;
// XXX: may want a separate uploader for "hey I made a CSO!" vs
// "I'm streaming this out at draw time and never want it again!"