Minor fixes.
This commit is contained in:
parent
8e01e2d945
commit
51b79cb399
|
@ -50,7 +50,7 @@ int D3D11VertexShader::Prepare(xe_gpu_program_cntl_t* program_cntl) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
const void* byte_code = NULL;
|
||||
void* byte_code = NULL;
|
||||
size_t byte_code_length = 0;
|
||||
|
||||
// Create shader.
|
||||
|
@ -99,7 +99,7 @@ int D3D11PixelShader::Prepare(xe_gpu_program_cntl_t* program_cntl) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
const void* byte_code = NULL;
|
||||
void* byte_code = NULL;
|
||||
size_t byte_code_length = 0;
|
||||
|
||||
// Create shader.
|
||||
|
|
|
@ -256,7 +256,7 @@ void RingBufferWorker::ExecuteSegment(uint32_t ptr, uint32_t length) {
|
|||
uint32_t d1 = XEGETUINT32BE(packet_base + 2 * 4);
|
||||
uint32_t index_count = d1 >> 16;
|
||||
uint32_t prim_type = d1 & 0x3F;
|
||||
uint32_t src_sel = (d0 >> 6) & 0x3;
|
||||
uint32_t src_sel = (d1 >> 6) & 0x3;
|
||||
XEASSERT(src_sel == 0x2); // 'SrcSel=AutoIndex'
|
||||
driver_->DrawAutoIndexed(
|
||||
(XE_GPU_PRIMITIVE_TYPE)prim_type,
|
||||
|
|
|
@ -21,7 +21,7 @@ Shader::Shader(
|
|||
XE_GPU_SHADER_TYPE type,
|
||||
const uint8_t* src_ptr, size_t length,
|
||||
uint64_t hash) :
|
||||
type_(type), hash_(hash) {
|
||||
type_(type), hash_(hash), is_prepared_(false) {
|
||||
// Verify.
|
||||
dword_count_ = length / 4;
|
||||
XEASSERT(dword_count_ <= 512);
|
||||
|
|
Loading…
Reference in New Issue