#include <stdio.h>
#include "d3dcompiler_private.h"
Go to the source code of this file.
◆ WINE_D3DCOMPILER_TO_STR
◆ compilation_message()
Definition at line 529 of file utils.c.
530{
533
534 if (
msg->capacity == 0)
535 {
538 {
539 ERR(
"Error allocating memory for parser messages\n");
540 return;
541 }
543 }
544
545 while (1)
546 {
549
550 if (rc < 0 || rc >=
msg->capacity -
msg->size)
551 {
555 {
556 ERR(
"Error reallocating memory for parser messages\n");
557 return;
558 }
561 }
562 else
563 {
566 return;
567 }
568 }
569}
#define MESSAGEBUFFER_INITIAL_SIZE
◆ debug_d3dcompiler_d3d_blob_part()
Definition at line 106 of file utils.c.
107{
108 switch(part)
109 {
123
128 default:
129 FIXME(
"Unrecognized D3D_BLOB_PART %#x\n", part);
130 return "unrecognized";
131 }
132}
@ D3D_BLOB_ALL_SIGNATURE_BLOB
@ D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB
@ D3D_BLOB_TEST_COMPILE_PERF
@ D3D_BLOB_ROOT_SIGNATURE
@ D3D_BLOB_TEST_ALTERNATE_SHADER
@ D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB
@ D3D_BLOB_TEST_COMPILE_DETAILS
@ D3D_BLOB_INPUT_SIGNATURE_BLOB
@ D3D_BLOB_OUTPUT_SIGNATURE_BLOB
@ D3D_BLOB_TEST_COMPILE_REPORT
@ D3D_BLOB_XNA_PREPASS_SHADER
#define WINE_D3DCOMPILER_TO_STR(x)
Referenced by check_blob_part(), d3dcompiler_get_blob_part(), and D3DGetBlobPart().
◆ debug_d3dcompiler_shader_variable_class()
Definition at line 32 of file utils.c.
33{
35 {
44 default:
45 FIXME(
"Unrecognized D3D_SHADER_VARIABLE_CLASS %#x.\n",
c);
46 return "unrecognized";
47 }
48}
@ D3D_SVC_INTERFACE_CLASS
@ D3D_SVC_INTERFACE_POINTER
Referenced by d3dcompiler_parse_type().
◆ debug_d3dcompiler_shader_variable_type()
Definition at line 50 of file utils.c.
51{
53 {
100 default:
101 FIXME(
"Unrecognized D3D_SHADER_VARIABLE_TYPE %#x.\n",
t);
102 return "unrecognized";
103 }
104}
@ D3D_SVT_RWSTRUCTURED_BUFFER
@ D3D_SVT_TEXTURECUBEARRAY
@ D3D_SVT_STRUCTURED_BUFFER
@ D3D_SVT_DEPTHSTENCILVIEW
@ D3D_SVT_APPEND_STRUCTURED_BUFFER
@ D3D_SVT_INTERFACE_POINTER
@ D3D_SVT_RWTEXTURE2DARRAY
@ D3D_SVT_BYTEADDRESS_BUFFER
@ D3D_SVT_TEXTURE2DMSARRAY
@ D3D_SVT_CONSUME_STRUCTURED_BUFFER
@ D3D_SVT_RENDERTARGETVIEW
@ D3D_SVT_RWTEXTURE1DARRAY
@ D3D_SVT_RWBYTEADDRESS_BUFFER
Referenced by d3dcompiler_parse_type().
◆ debug_print_comp()
Definition at line 407 of file utils.c.
408{
409 switch (comp)
410 {
418 default: return "_unknown";
419 }
420}
@ BWRITER_COMPARISON_NONE
Referenced by asmparser_instr().
◆ debug_print_dstmod()
Definition at line 159 of file utils.c.
160{
162 {
163 case 0:
164 return "";
166 return "_sat";
168 return "_pp";
170 return "_centroid";
172 return "_sat_pp";
174 return "_sat_centroid";
176 return "_pp_centroid";
178 return "_sat_pp_centroid";
179 default:
180 return "Unexpected modifier\n";
181 }
182}
std::map< E_MODULE, HMODULE > mod
@ BWRITERSPDM_PARTIALPRECISION
@ BWRITERSPDM_MSAMPCENTROID
Referenced by asmparser_instr(), and check_ps_dstmod().
◆ debug_print_dstreg()
◆ debug_print_opcode()
◆ debug_print_relarg()
Definition at line 321 of file utils.c.
322{
323 const char *short_swizzle;
324 if (!
reg->rel_reg)
return "";
325
327
332 else
333 return "Unexpected relative addressing argument";
334}
static const char * debug_print_swizzle(uint32_t arg)
Referenced by debug_print_dstreg(), and debug_print_srcreg().
◆ debug_print_shift()
Definition at line 184 of file utils.c.
185{
186 static const char * const shiftstrings[] =
187 {
188 "",
189 "_x2",
190 "_x4",
191 "_x8",
192 "_x16",
193 "_x32",
194 "",
195 "",
196 "",
197 "",
198 "",
199 "",
200 "_d16",
201 "_d8",
202 "_d4",
203 "_d2",
204 };
205 return shiftstrings[
shift];
206}
Referenced by asmparser_instr().
◆ debug_print_srcmod()
◆ debug_print_srcreg()
◆ debug_print_swizzle()
Definition at line 280 of file utils.c.
281{
285
287 {
289 return "";
291 return ".x";
293 return ".y";
295 return ".z";
297 return ".w";
298 }
299
304
306 for (
i = 0;
i < 4; ++
i)
307 {
309 {
310 case 0:
ret[1 +
i] =
'x';
break;
311 case 1:
ret[1 +
i] =
'y';
break;
312 case 2:
ret[1 +
i] =
'z';
break;
313 case 3:
ret[1 +
i] =
'w';
break;
314 }
315 }
317
319}
#define BWRITERVS_SWIZZLE_Z
#define BWRITERVS_SWIZZLE_X
#define BWRITERVS_SWIZZLE_W
#define BWRITERVS_NOSWIZZLE
#define BWRITERVS_SWIZZLE_Y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by debug_print_relarg(), and debug_print_srcreg().
◆ debug_print_writemask()
Definition at line 264 of file utils.c.
265{
267 unsigned char pos = 1;
268
276
278}
#define BWRITERSP_WRITEMASK_3
#define BWRITERSP_WRITEMASK_0
#define BWRITERSP_WRITEMASK_ALL
#define BWRITERSP_WRITEMASK_1
#define BWRITERSP_WRITEMASK_2
Referenced by debug_print_dstreg().
◆ get_regname()
Definition at line 208 of file utils.c.
209{
211 {
224 {
228 default: return "Unexpected RASTOUT";
229 }
241 return "oDepth";
247 return "aL";
250 {
251 case 0: return "vPos";
252 case 1: return "vFace";
253 default: return "unexpected misctype";
254 }
259 default:
261 }
262}
Referenced by debug_print_dstreg(), and debug_print_srcreg().
◆ skip_u32_unknown()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
d3dcompiler |
| ) |
|