summaryrefslogtreecommitdiffstats
path: root/src/intel/blorp/blorp.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-10-21 10:40:58 -0700
committerJason Ekstrand <[email protected]>2016-11-16 10:11:29 -0800
commit1acebeb1910b5fb29195acf132bbb88ebeebfb8b (patch)
tree4e1ac087f1c639ecf7e0baf54d4b2d10237574d9 /src/intel/blorp/blorp.c
parent6614234fc938e793eb258fb981008661aa943a10 (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.c')
-rw-r--r--src/intel/blorp/blorp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c
index 402282f0ff0..c26490531b3 100644
--- a/src/intel/blorp/blorp.c
+++ b/src/intel/blorp/blorp.c
@@ -141,6 +141,7 @@ void
blorp_params_init(struct blorp_params *params)
{
memset(params, 0, sizeof(*params));
+ params->num_samples = 1;
params->num_draw_buffers = 1;
params->num_layers = 1;
}
@@ -265,6 +266,7 @@ blorp_gen6_hiz_op(struct blorp_batch *batch,
params.dst.surf.samples = params.depth.surf.samples;
params.dst.surf.logical_level0_px = params.depth.surf.logical_level0_px;
params.depth_format = isl_format_get_depth_format(surf->surf->format, false);
+ params.num_samples = params.depth.surf.samples;
batch->blorp->exec(batch, &params);
}