diff options
author | Jason Ekstrand <[email protected]> | 2016-10-21 10:40:58 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-16 10:11:29 -0800 |
commit | 1acebeb1910b5fb29195acf132bbb88ebeebfb8b (patch) | |
tree | 4e1ac087f1c639ecf7e0baf54d4b2d10237574d9 /src/intel/blorp/blorp_clear.c | |
parent | 6614234fc938e793eb258fb981008661aa943a10 (diff) |
intel/blorp: Make the number of samples an explicit parameter
Previously, we always inferred it from params->dst which meant that
references to params->dst were scattered all throughout the state upload
code.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp_clear.c')
-rw-r--r-- | src/intel/blorp/blorp_clear.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index 981c94dfec9..c59040e0313 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -234,6 +234,7 @@ blorp_fast_clear(struct blorp_batch *batch, brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, surf, level, start_layer, format, true); + params.num_samples = params.dst.surf.samples; batch->blorp->exec(batch, ¶ms); } @@ -293,6 +294,8 @@ blorp_clear(struct blorp_batch *batch, start_layer, format, true); params.dst.view.swizzle = swizzle; + params.num_samples = params.dst.surf.samples; + /* We may be restricted on the number of layers we can bind at any one * time. In particular, Sandy Bridge has a maximum number of layers of * 512 but a maximum 3D texture size is much larger. @@ -338,6 +341,8 @@ blorp_clear_depth_stencil(struct blorp_batch *batch, params.stencil.surf.logical_level0_px; params.dst.view = params.depth.view; + params.num_samples = params.stencil.surf.samples; + /* We may be restricted on the number of layers we can bind at any * one time. In particular, Sandy Bridge has a maximum number of * layers of 512 but a maximum 3D texture size is much larger. @@ -359,6 +364,8 @@ blorp_clear_depth_stencil(struct blorp_batch *batch, params.depth.surf.logical_level0_px; params.dst.view = params.depth.view; + params.num_samples = params.depth.surf.samples; + /* We may be restricted on the number of layers we can bind at any * one time. In particular, Sandy Bridge has a maximum number of * layers of 512 but a maximum 3D texture size is much larger. |