summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_cmd_buffer.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-05-02 09:58:33 +1000
committerDave Airlie <[email protected]>2017-05-03 06:00:35 +1000
commit052487be4ccd6b4ad7a8f0fac22729bb72acf549 (patch)
tree750d758b5b1d36945849093b8a56449b29aceac2 /src/amd/vulkan/radv_cmd_buffer.c
parent7e8d0a402b0a0db431da04f5126853de50729ed7 (diff)
radv: remove some members of radeon surface.
We would be storing this info twice per image, no need to, remove it from the surface struct. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 198c599fe0a..d165512eb6b 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -966,7 +966,7 @@ static void radv_set_optimal_micro_tile_mode(struct radv_device *device,
{
struct radv_image *image = att->attachment->image;
uint32_t tile_mode_index;
- if (image->surface.nsamples <= 1)
+ if (image->info.samples <= 1)
return;
if (image->surface.micro_tile_mode != micro_tile_mode) {