|
| WINE_DEFAULT_DEBUG_CHANNEL (d3d_shader) |
|
| WINE_DECLARE_DEBUG_CHANNEL (d3d_constants) |
|
| WINE_DECLARE_DEBUG_CHANNEL (d3d) |
|
| WINE_DECLARE_DEBUG_CHANNEL (d3d_perf) |
|
static BOOL | shader_is_pshader_version (enum wined3d_shader_type type) |
|
static BOOL | shader_is_vshader_version (enum wined3d_shader_type type) |
|
static const char * | get_line (const char **ptr) |
|
static const char * | arb_get_helper_value (enum wined3d_shader_type shader, enum arb_helper_value value) |
|
static BOOL | ffp_clip_emul (const struct wined3d_context *context) |
|
static BOOL | need_rel_addr_const (const struct arb_vshader_private *shader_data, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info) |
|
static BOOL | use_nv_clip (const struct wined3d_gl_info *gl_info) |
|
static BOOL | need_helper_const (const struct arb_vshader_private *shader_data, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info) |
|
static unsigned int | reserved_vs_const (const struct arb_vshader_private *shader_data, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info) |
|
static unsigned int | shader_arb_load_constants_f (const struct wined3d_shader *shader, const struct wined3d_gl_info *gl_info, GLuint target_type, unsigned int max_constants, const struct wined3d_vec4 *constants, char *dirty_consts) |
|
static void | shader_arb_load_np2fixup_constants (const struct arb_ps_np2fixup_info *fixup, const struct wined3d_gl_info *gl_info, const struct wined3d_state *state) |
|
static void | shader_arb_ps_local_constants (const struct arb_ps_compiled_shader *gl_shader, const struct wined3d_context *context, const struct wined3d_state *state, UINT rt_height) |
|
static void | shader_arb_vs_local_constants (const struct arb_vs_compiled_shader *gl_shader, const struct wined3d_context *context, const struct wined3d_state *state) |
|
static void | shader_arb_select (void *shader_priv, struct wined3d_context *context, const struct wined3d_state *state) |
|
static void | shader_arb_load_constants_internal (struct shader_arb_priv *priv, struct wined3d_context *context, const struct wined3d_state *state, BOOL usePixelShader, BOOL useVertexShader, BOOL from_shader_select) |
|
static void | shader_arb_load_constants (void *shader_priv, struct wined3d_context *context, const struct wined3d_state *state) |
|
static void | shader_arb_update_float_vertex_constants (struct wined3d_device *device, UINT start, UINT count) |
|
static void | shader_arb_update_float_pixel_constants (struct wined3d_device *device, UINT start, UINT count) |
|
static void | shader_arb_append_imm_vec4 (struct wined3d_string_buffer *buffer, const float *values) |
|
static void | shader_generate_arb_declarations (const struct wined3d_shader *shader, const struct wined3d_shader_reg_maps *reg_maps, struct wined3d_string_buffer *buffer, const struct wined3d_gl_info *gl_info, DWORD *num_clipplanes, const struct shader_arb_ctx_priv *ctx) |
|
static void | shader_arb_get_write_mask (const struct wined3d_shader_instruction *ins, const struct wined3d_shader_dst_param *dst, char *write_mask) |
|
static void | shader_arb_get_swizzle (const struct wined3d_shader_src_param *param, BOOL fixup, char *swizzle_str) |
|
static void | shader_arb_request_a0 (const struct wined3d_shader_instruction *ins, const char *src) |
|
static void | shader_arb_get_src_param (const struct wined3d_shader_instruction *ins, const struct wined3d_shader_src_param *src, unsigned int tmpreg, char *outregstr) |
|
static void | shader_arb_get_register_name (const struct wined3d_shader_instruction *ins, const struct wined3d_shader_register *reg, char *register_name, BOOL *is_color) |
|
static void | shader_arb_get_dst_param (const struct wined3d_shader_instruction *ins, const struct wined3d_shader_dst_param *wined3d_dst, char *str) |
|
static const char * | shader_arb_get_fixup_swizzle (enum fixup_channel_source channel_source) |
|
static struct color_fixup_masks | calc_color_correction (struct color_fixup_desc fixup, DWORD dst_mask) |
|
static void | gen_color_correction (struct wined3d_string_buffer *buffer, const char *dst, const char *src, const char *one, const char *two, struct color_fixup_desc fixup, struct color_fixup_masks masks) |
|
static const char * | shader_arb_get_modifier (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_sample (const struct wined3d_shader_instruction *ins, DWORD sampler_idx, const char *dst_str, const char *coord_reg, WORD flags, const char *dsx, const char *dsy) |
|
static void | pshader_hw_bem (const struct wined3d_shader_instruction *ins) |
|
static DWORD | negate_modifiers (DWORD mod, char *extra_char) |
|
static void | pshader_hw_cnd (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_cmp (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_dp2add (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_map2gl (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_nop (const struct wined3d_shader_instruction *ins) |
|
static DWORD | shader_arb_select_component (DWORD swizzle, DWORD component) |
|
static void | shader_hw_mov (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texkill (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_tex (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texcoord (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texreg2ar (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texreg2gb (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texreg2rgb (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texbem (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x2pad (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x2tex (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x3pad (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x3tex (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x3vspec (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x3spec (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texdepth (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texdp3tex (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texdp3 (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x3 (const struct wined3d_shader_instruction *ins) |
|
static void | pshader_hw_texm3x2depth (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_mnxn (const struct wined3d_shader_instruction *ins) |
|
static DWORD | abs_modifier (DWORD mod, BOOL *need_abs) |
|
static void | shader_hw_scalar_op (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_nrm (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_lrp (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_sincos (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_sgn (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_dsy (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_pow (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_loop (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_rep (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_endloop (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_endrep (const struct wined3d_shader_instruction *ins) |
|
static const struct control_frame * | find_last_loop (const struct shader_arb_ctx_priv *priv) |
|
static void | shader_hw_break (const struct wined3d_shader_instruction *ins) |
|
static const char * | get_compare (enum wined3d_shader_rel_op op) |
|
static enum wined3d_shader_rel_op | invert_compare (enum wined3d_shader_rel_op op) |
|
static void | shader_hw_breakc (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_ifc (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_else (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_endif (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_texldd (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_texldl (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_label (const struct wined3d_shader_instruction *ins) |
|
static void | vshader_add_footer (struct shader_arb_ctx_priv *priv_ctx, const struct arb_vshader_private *shader_data, const struct arb_vs_compile_args *args, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info, struct wined3d_string_buffer *buffer) |
|
static void | shader_hw_ret (const struct wined3d_shader_instruction *ins) |
|
static void | shader_hw_call (const struct wined3d_shader_instruction *ins) |
|
static BOOL | shader_arb_compile (const struct wined3d_gl_info *gl_info, GLenum target, const char *src) |
|
static void | arbfp_add_sRGB_correction (struct wined3d_string_buffer *buffer, const char *fragcolor, const char *tmp1, const char *tmp2, const char *tmp3, const char *tmp4, BOOL condcode) |
|
static const DWORD * | find_loop_control_values (const struct wined3d_shader *shader, DWORD idx) |
|
static void | init_ps_input (const struct wined3d_shader *shader, const struct arb_ps_compile_args *args, struct shader_arb_ctx_priv *priv) |
|
static void | arbfp_add_linear_fog (struct wined3d_string_buffer *buffer, const char *fragcolor, const char *tmp) |
|
static GLuint | shader_arb_generate_pshader (const struct wined3d_shader *shader, const struct wined3d_gl_info *gl_info, struct wined3d_string_buffer *buffer, const struct arb_ps_compile_args *args, struct arb_ps_compiled_shader *compiled) |
|
static int | compare_sig (const struct wined3d_shader_signature *sig1, const struct wined3d_shader_signature *sig2) |
|
static void | clone_sig (struct wined3d_shader_signature *new, const struct wined3d_shader_signature *sig) |
|
static DWORD | find_input_signature (struct shader_arb_priv *priv, const struct wined3d_shader_signature *sig) |
|
static void | init_output_registers (const struct wined3d_shader *shader, const struct wined3d_shader_signature *ps_input_sig, struct shader_arb_ctx_priv *priv_ctx, struct arb_vs_compiled_shader *compiled) |
|
static GLuint | shader_arb_generate_vshader (const struct wined3d_shader *shader, const struct wined3d_gl_info *gl_info, struct wined3d_string_buffer *buffer, const struct arb_vs_compile_args *args, struct arb_vs_compiled_shader *compiled, const struct wined3d_shader_signature *ps_input_sig) |
|
static struct arb_ps_compiled_shader * | find_arb_pshader (struct wined3d_shader *shader, const struct arb_ps_compile_args *args) |
|
static BOOL | vs_args_equal (const struct arb_vs_compile_args *stored, const struct arb_vs_compile_args *new, const DWORD use_map, BOOL skip_int) |
|
static struct arb_vs_compiled_shader * | find_arb_vshader (struct wined3d_shader *shader, const struct wined3d_gl_info *gl_info, DWORD use_map, const struct arb_vs_compile_args *args, const struct wined3d_shader_signature *ps_input_sig) |
|
static void | find_arb_ps_compile_args (const struct wined3d_state *state, const struct wined3d_context *context, const struct wined3d_shader *shader, struct arb_ps_compile_args *args) |
|
static void | find_arb_vs_compile_args (const struct wined3d_state *state, const struct wined3d_context *context, const struct wined3d_shader *shader, struct arb_vs_compile_args *args) |
|
static void | shader_arb_select_compute (void *shader_priv, struct wined3d_context *context, const struct wined3d_state *state) |
|
static void | shader_arb_disable (void *shader_priv, struct wined3d_context *context) |
|
static void | shader_arb_destroy (struct wined3d_shader *shader) |
|
static int | sig_tree_compare (const void *key, const struct wine_rb_entry *entry) |
|
static HRESULT | shader_arb_alloc (struct wined3d_device *device, const struct wined3d_vertex_pipe_ops *vertex_pipe, const struct fragment_pipeline *fragment_pipe) |
|
static void | release_signature (struct wine_rb_entry *entry, void *context) |
|
static void | shader_arb_free (struct wined3d_device *device) |
|
static BOOL | shader_arb_allocate_context_data (struct wined3d_context *context) |
|
static void | shader_arb_free_context_data (struct wined3d_context *context) |
|
static void | shader_arb_init_context_state (struct wined3d_context *context) |
|
static void | shader_arb_get_caps (const struct wined3d_gl_info *gl_info, struct shader_caps *caps) |
|
static BOOL | shader_arb_color_fixup_supported (struct color_fixup_desc fixup) |
|
static void | shader_arb_add_instruction_modifiers (const struct wined3d_shader_instruction *ins) |
|
static BOOL | get_bool_const (const struct wined3d_shader_instruction *ins, const struct wined3d_shader *shader, DWORD idx) |
|
static void | get_loop_control_const (const struct wined3d_shader_instruction *ins, const struct wined3d_shader *shader, UINT idx, struct wined3d_shader_loop_control *loop_control) |
|
static void | record_instruction (struct list *list, const struct wined3d_shader_instruction *ins) |
|
static void | free_recorded_instruction (struct list *list) |
|
static void | pop_control_frame (const struct wined3d_shader_instruction *ins) |
|
static void | shader_arb_handle_instruction (const struct wined3d_shader_instruction *ins) |
|
static BOOL | shader_arb_has_ffp_proj_control (void *shader_priv) |
|
static void | shader_arb_precompile (void *shader_priv, struct wined3d_shader *shader) |
|
static void | arbfp_enable (const struct wined3d_gl_info *gl_info, BOOL enable) |
|
static void * | arbfp_alloc (const struct wined3d_shader_backend_ops *shader_backend, void *shader_priv) |
|
static void | arbfp_free_ffpshader (struct wine_rb_entry *entry, void *context) |
|
static void | arbfp_free (struct wined3d_device *device) |
|
static void | arbfp_get_caps (const struct wined3d_gl_info *gl_info, struct fragment_caps *caps) |
|
static DWORD | arbfp_get_emul_mask (const struct wined3d_gl_info *gl_info) |
|
static void | state_texfactor_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | state_tss_constant_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | state_arb_specularenable (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | set_bumpmat_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | tex_bumpenvlum_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | alpha_test_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | color_key_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static const char * | get_argreg (struct wined3d_string_buffer *buffer, DWORD argnum, unsigned int stage, DWORD arg) |
|
static void | gen_ffp_instr (struct wined3d_string_buffer *buffer, unsigned int stage, BOOL color, BOOL alpha, DWORD dst, DWORD op, DWORD dw_arg0, DWORD dw_arg1, DWORD dw_arg2) |
|
static const char * | arbfp_texture_target (enum wined3d_gl_resource_type type) |
|
static GLuint | gen_arbfp_ffp_shader (const struct ffp_frag_settings *settings, const struct wined3d_gl_info *gl_info) |
|
static void | fragment_prog_arbfp (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | state_arbfp_fog (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static void | textransform (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) |
|
static BOOL | arbfp_alloc_context_data (struct wined3d_context *context) |
|
static void | arbfp_free_context_data (struct wined3d_context *context) |
|
static int | arbfp_blit_type_compare (const void *key, const struct wine_rb_entry *entry) |
|
static void | arbfp_free_blit_shader (struct wine_rb_entry *entry, void *ctx) |
|
static void | arbfp_blitter_destroy (struct wined3d_blitter *blitter, struct wined3d_context *context) |
|
static BOOL | gen_planar_yuv_read (struct wined3d_string_buffer *buffer, const struct arbfp_blit_type *type, char *luminance) |
|
static BOOL | gen_yv12_read (struct wined3d_string_buffer *buffer, const struct arbfp_blit_type *type, char *luminance) |
|
static BOOL | gen_nv12_read (struct wined3d_string_buffer *buffer, const struct arbfp_blit_type *type, char *luminance) |
|
static GLuint | gen_p8_shader (const struct wined3d_gl_info *gl_info, const struct arbfp_blit_type *type) |
|
static void | upload_palette (struct wined3d_arbfp_blitter *blitter, const struct wined3d_texture *texture, struct wined3d_context *context) |
|
static GLuint | gen_yuv_shader (const struct wined3d_gl_info *gl_info, const struct arbfp_blit_type *type) |
|
static GLuint | arbfp_gen_plain_shader (const struct wined3d_gl_info *gl_info, const struct arbfp_blit_type *type) |
|
static HRESULT | arbfp_blit_set (struct wined3d_arbfp_blitter *blitter, struct wined3d_context *context, const struct wined3d_texture *texture, unsigned int sub_resource_idx, const struct wined3d_color_key *color_key) |
|
static void | arbfp_blit_unset (const struct wined3d_gl_info *gl_info) |
|
static BOOL | arbfp_blit_supported (enum wined3d_blit_op blit_op, const struct wined3d_context *context, const struct wined3d_resource *src_resource, DWORD src_location, const struct wined3d_resource *dst_resource, DWORD dst_location) |
|
static DWORD | arbfp_blitter_blit (struct wined3d_blitter *blitter, enum wined3d_blit_op op, struct wined3d_context *context, struct wined3d_surface *src_surface, DWORD src_location, const RECT *src_rect, struct wined3d_surface *dst_surface, DWORD dst_location, const RECT *dst_rect, const struct wined3d_color_key *color_key, enum wined3d_texture_filter_type filter) |
|
static void | arbfp_blitter_clear (struct wined3d_blitter *blitter, struct wined3d_device *device, unsigned int rt_count, const struct wined3d_fb_state *fb, unsigned int rect_count, const RECT *clear_rects, const RECT *draw_rect, DWORD flags, const struct wined3d_color *colour, float depth, DWORD stencil) |
|
void | wined3d_arbfp_blitter_create (struct wined3d_blitter **next, const struct wined3d_device *device) |
|