aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-08-28 07:53:24 -0700
committerChad Versace <[email protected]>2015-08-28 07:53:24 -0700
commit641c25dd5505333ae4d260c6e821249c1be6da65 (patch)
tree6f7151316001203843980b0a53e045f94528f233 /src
parentc6f19b42486dd8f17c19779e38f7ee84f4f14a52 (diff)
vk: Declare some local variables as const
In anv_cmd_buffer_emit_depth_stencil(), declare 'subpass' and 'fb' as const.
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/gen7_cmd_buffer.c4
-rw-r--r--src/vulkan/gen8_cmd_buffer.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/vulkan/gen7_cmd_buffer.c b/src/vulkan/gen7_cmd_buffer.c
index 84b733ca458..e98fac1f4d3 100644
--- a/src/vulkan/gen7_cmd_buffer.c
+++ b/src/vulkan/gen7_cmd_buffer.c
@@ -528,8 +528,8 @@ void gen7_CmdPipelineBarrier(
static void
gen7_cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
{
- struct anv_subpass *subpass = cmd_buffer->state.subpass;
- struct anv_framebuffer *fb = cmd_buffer->state.framebuffer;
+ const struct anv_subpass *subpass = cmd_buffer->state.subpass;
+ const struct anv_framebuffer *fb = cmd_buffer->state.framebuffer;
const struct anv_depth_stencil_view *view = NULL;
if (subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED) {
diff --git a/src/vulkan/gen8_cmd_buffer.c b/src/vulkan/gen8_cmd_buffer.c
index 5aa78528f5c..87ec90e18aa 100644
--- a/src/vulkan/gen8_cmd_buffer.c
+++ b/src/vulkan/gen8_cmd_buffer.c
@@ -458,8 +458,8 @@ void gen8_CmdDispatchIndirect(
static void
gen8_cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
{
- struct anv_subpass *subpass = cmd_buffer->state.subpass;
- struct anv_framebuffer *fb = cmd_buffer->state.framebuffer;
+ const struct anv_subpass *subpass = cmd_buffer->state.subpass;
+ const struct anv_framebuffer *fb = cmd_buffer->state.framebuffer;
const struct anv_depth_stencil_view *view = NULL;
if (subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED) {