diff options
author | Jason Ekstrand <[email protected]> | 2016-10-07 17:17:05 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-14 15:39:41 -0700 |
commit | 81be7be11960e3edb6968fd5c8d9475f234aae48 (patch) | |
tree | e61481d5098ab998ef4a9a8206ebf09f7e3cdff3 /src/intel/blorp/blorp.c | |
parent | bc4bb5a7e302569f593882feabff1379b640022a (diff) |
intel/blorp: Add an "enabled" bit to surface_info
This gives a slightly smarter way to check whether or not a particular
surface exists than looking at the address.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp.c')
-rw-r--r-- | src/intel/blorp/blorp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c index 1c8fd550af6..91513a0413a 100644 --- a/src/intel/blorp/blorp.c +++ b/src/intel/blorp/blorp.c @@ -64,6 +64,8 @@ brw_blorp_surface_info_init(struct blorp_context *blorp, unsigned int level, unsigned int layer, enum isl_format format, bool is_render_target) { + info->enabled = true; + if (format == ISL_FORMAT_UNSUPPORTED) format = surf->surf->format; |