diff options
author | Erik Faye-Lund <[email protected]> | 2018-07-12 12:40:09 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-08-07 09:38:27 +0200 |
commit | 0914e1464ebbf8199141b0e94e271e0a44e3ffa0 (patch) | |
tree | 0e60ee2fc0a017060aabf135fc6a5fa0ea792ba9 /src/gallium/drivers/virgl/virgl_context.c | |
parent | 9507e036994018d3038e6263b98c53b0c916d2cd (diff) |
virgl: rename msaa_sample_positions -> sample_locations
This matches what this field is called in virglrenderer's copy of
this.
This reduces the diff between the two different versions of
virgl_hw.h, and should make it easier to upgrade the file in
the future.
Signed-off-by: Erik Faye-Lund <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index d1a1c98660e..03c0fd7cd50 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -1100,13 +1100,13 @@ static void virgl_get_sample_position(struct pipe_context *ctx, out_value[0] = out_value[1] = 0.5f; return; } else if (sample_count == 2) { - bits = vs->caps.caps.v2.msaa_sample_positions[0] >> (8 * index); + bits = vs->caps.caps.v2.sample_locations[0] >> (8 * index); } else if (sample_count <= 4) { - bits = vs->caps.caps.v2.msaa_sample_positions[1] >> (8 * index); + bits = vs->caps.caps.v2.sample_locations[1] >> (8 * index); } else if (sample_count <= 8) { - bits = vs->caps.caps.v2.msaa_sample_positions[2 + (index >> 2)] >> (8 * (index & 3)); + bits = vs->caps.caps.v2.sample_locations[2 + (index >> 2)] >> (8 * (index & 3)); } else if (sample_count <= 16) { - bits = vs->caps.caps.v2.msaa_sample_positions[4 + (index >> 2)] >> (8 * (index & 3)); + bits = vs->caps.caps.v2.sample_locations[4 + (index >> 2)] >> (8 * (index & 3)); } out_value[0] = ((bits >> 4) & 0xf) / 16.0f; out_value[1] = (bits & 0xf) / 16.0f; |