Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Side by Side Diff: src/gpu/vk/GrVkPipelineState.cpp

Issue 1921963003: Fix vulkan build on linux and android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkGpu.h ('k') | src/gpu/vk/GrVkPipelineStateCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrVkPipelineState.h" 8 #include "GrVkPipelineState.h"
9 9
10 #include "GrPipeline.h" 10 #include "GrPipeline.h"
11 #include "GrTexturePriv.h" 11 #include "GrTexturePriv.h"
12 #include "GrVkCommandBuffer.h" 12 #include "GrVkCommandBuffer.h"
13 #include "GrVkDescriptorPool.h" 13 #include "GrVkDescriptorPool.h"
14 #include "GrVkGpu.h" 14 #include "GrVkGpu.h"
15 #include "GrVkImageView.h" 15 #include "GrVkImageView.h"
16 #include "GrVkMemory.h" 16 #include "GrVkMemory.h"
17 #include "GrVkPipeline.h" 17 #include "GrVkPipeline.h"
18 #include "GrVkRenderTarget.h" 18 #include "GrVkRenderTarget.h"
19 #include "GrVkSampler.h" 19 #include "GrVkSampler.h"
20 #include "GrVkTexture.h" 20 #include "GrVkTexture.h"
21 #include "GrVkUniformBuffer.h" 21 #include "GrVkUniformBuffer.h"
22 #include "glsl/GrGLSLFragmentProcessor.h" 22 #include "glsl/GrGLSLFragmentProcessor.h"
23 #include "glsl/GrGLSLGeometryProcessor.h" 23 #include "glsl/GrGLSLGeometryProcessor.h"
24 #include "glsl/GrGLSLXferProcessor.h" 24 #include "glsl/GrGLSLXferProcessor.h"
25 #include "SkMipmap.h" 25 #include "SkMipMap.h"
26 26
27 GrVkPipelineState::GrVkPipelineState(GrVkGpu* gpu, 27 GrVkPipelineState::GrVkPipelineState(GrVkGpu* gpu,
28 const GrVkPipelineState::Desc& desc, 28 const GrVkPipelineState::Desc& desc,
29 GrVkPipeline* pipeline, 29 GrVkPipeline* pipeline,
30 VkPipelineLayout layout, 30 VkPipelineLayout layout,
31 VkDescriptorSetLayout dsLayout[2], 31 VkDescriptorSetLayout dsLayout[2],
32 const BuiltinUniformHandles& builtinUniform Handles, 32 const BuiltinUniformHandles& builtinUniform Handles,
33 const UniformInfoArray& uniforms, 33 const UniformInfoArray& uniforms,
34 uint32_t vertexUniformSize, 34 uint32_t vertexUniformSize,
35 uint32_t fragmentUniformSize, 35 uint32_t fragmentUniformSize,
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 b.add32(get_blend_info_key(pipeline)); 497 b.add32(get_blend_info_key(pipeline));
498 498
499 b.add32(primitiveType); 499 b.add32(primitiveType);
500 500
501 // Set key length 501 // Set key length
502 int keyLength = key->count(); 502 int keyLength = key->count();
503 SkASSERT(0 == (keyLength % 4)); 503 SkASSERT(0 == (keyLength % 4));
504 *reinterpret_cast<uint32_t*>(key->begin()) = SkToU32(keyLength); 504 *reinterpret_cast<uint32_t*>(key->begin()) = SkToU32(keyLength);
505 } 505 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.h ('k') | src/gpu/vk/GrVkPipelineStateCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698